Lift-manytomany-test is a project mainly written in Scala, it's free.
Test program to investigate ManyToMany relationships.
execute the test: code.model.BookSuite to see the assertion failure