@Test
public void testSelectWhereAll() throws SQLException {

    SqlBuilder builder = SqlBuilder.selectAllFrom(p).where().includeAll().and().excludeAll().and(SegmentConstants.TRUE).or(SegmentConstants.FALSE);
    ConditionList cl = builder.buildQueryConditions();
    cl = (ConditionList)cl.get(0);//get first
    assertFalse(cl.isIntersected());
    assertEquals(3, cl.size());
    assertTrue(cl.get(1) instanceof ColumnCondition);
    assertTrue(cl.get(2) instanceof ColumnCondition);
    cl = (ConditionList)cl.get(0);
    assertTrue(cl.isIntersected());
    assertEquals(2, cl.size());
}