Assert.assertEquals(books, Arrays.asList(b2));
}
@Test
public void testParameterList() {
final Book b1 = new Book("param1", new DateMidnight());
dao.create(b1);
final Book b2 = new Book("param2", new DateMidnight());
dao.create(b2);
final Book b3 = new Book("param3", new DateMidnight());
dao.create(b3);
final List<Book> books1 = dao.findByIds(1, new long[] { b1.getPrimaryKey(), b2.getPrimaryKey() });
Assert.assertEquals(books1, Arrays.asList(b1));
final List<Book> books2 = dao.findByObjectIds(new Long[] { b1.getPrimaryKey(), b2.getPrimaryKey() });
Assert.assertEquals(books2, Arrays.asList(b1, b2));