@Test
public void testGenerateCriteria_GreaterThanDate() {

    String dateString = "1/1/2010";
    DateTime date = DateTime.parse(dateString, formatter).withTimeAtStartOfDay();
    Map<String, String> mapCriteria = new HashMap<String, String>();
    mapCriteria.put("prop4", SearchOperator.GREATER_THAN.op() + dateString);
    QueryByCriteria.Builder qbcBuilder = generator.generateCriteria(TestClass.class, mapCriteria, false);
    assertNotNull(qbcBuilder);
    QueryByCriteria qbc = qbcBuilder.build();
    Predicate greaterThan = qbc.getPredicate();
    assertTrue(greaterThan instanceof GreaterThanPredicate);
    assertEquals(((GreaterThanPredicate) greaterThan).getValue().getValue(), date);
}