List<Author> result = AuthorPeer.doSelect(criteria);
assertEquals("Expected result of size 2 but got " + result.size(),
2,
result.size());
Author author = result.get(0);
assertEquals("Expected author with Id "
+ authorList.get(1).getAuthorId()
+ " at first position but got "
+ author.getAuthorId(),
authorList.get(1).getAuthorId(),
author.getAuthorId());
author = result.get(1);
assertEquals("Expected author with Id "
+ authorList.get(0).getAuthorId()
+ " at second position but got "
+ author.getAuthorId(),
authorList.get(0).getAuthorId(),
author.getAuthorId());
}