}
assertTrue("Number of books before copy should be 10, was "
+ author.getBooks().size(),
author.getBooks().size() == 10);
Author authorCopy = author.copy();
authorCopy.save();
author = AuthorPeer.retrieveByPK(author.getPrimaryKey());
assertTrue("Number of books in original object should be 10, was "
+ author.getBooks().size(),
author.getBooks().size() == 10);