}
@Test
public void testSqlQuery() {
final DateMidnight date = new DateMidnight();
final Book book = new Book("sql query", date);
dao.create(book);
final List<Object[]> list = dao.getBookByTitle("sql query");
Assert.assertTrue(list.size() == 1);
Assert.assertEquals(list.get(0), new Object[] { BigInteger.valueOf(book.getPrimaryKey()), new Timestamp(date.getMillis()), book.getTitle() });
}