assertEquals("0836217462", book.getIsbn());
assertEquals(book.getCharactersTotal(), 2);
for(Iterator iter = book.getCharacters().iterator(); iter.hasNext();)
{
BookCharacter character = (BookCharacter)iter.next();
final String name = character.getName();
if(name.equals("Snoopy"))
{
assertEquals(character.getFriendOf(), "Peppermint Patty");
assertEquals(character.getSince(), "1950-10-04");
assertEquals(character.getQualification(), "extroverted beagle");
}
else if(name.equals("Peppermint Patty"))
{
assertEquals(character.getFriendOf(), null);
assertEquals(character.getSince(), "1966-08-22");
assertEquals(character.getQualification(), "bold, brash and tomboyish");
}
}
}