@Test
public void testAllCondition() {
MockQueryBuilder builder = new MockQueryBuilder();
SelectQuery<Person> query = new GenericSelectQuery<Person, Object>(builder, Person.class);
Person target = query.target();
query.having(target.getName(), ProjectionType.COUNT).eq(2D);
query.having(target.getName(), ProjectionType.COUNT).notEq(2D);
query.having(target.getName(), ProjectionType.COUNT).gt(2D);
query.having(target.getName(), ProjectionType.COUNT).gtEq(2D);
query.having(target.getName(), ProjectionType.COUNT).lt(2D);
query.having(target.getName(), ProjectionType.COUNT).ltEq(2D);
builder.build();
assertEquals(6, builder.getHavingString().size());
assertEquals("name COUNT EQUALS 2.0", builder.getHavingString().get(0));
assertEquals("name COUNT NOT_EQUALS 2.0", builder.getHavingString().get(1));
assertEquals("name COUNT GREATER 2.0", builder.getHavingString().get(2));