Query query = queryBuilder
.setEntityType( "IndexedEntity" )
.pushAndPredicate()
.pushOrPredicate()
.addComparisonPredicate( Arrays.asList( "name" ), Type.EQUALS, "foobar" )
<BUG>.addComparisonPredicate( Arrays.asList( "i" ), Type.EQUALS, "1" )
.popBooleanPredicate()
.addComparisonPredicate( Arrays.asList( "l" ), Type.EQUALS, "10" )
.build();</BUG>
assertThat( query.toString() ).isEqualTo( "+(name:foobar i:[1 TO 1]) +l:[10 TO 10]" );

Query query = queryBuilder
.setEntityType( "IndexedEntity" )
.pushOrPredicate()
.addComparisonPredicate( Arrays.asList( "name" ), Type.EQUALS, "foobar" )
.addComparisonPredicate( Arrays.asList( "i" ), Type.EQUALS, 1 )
.build();
assertThat( query.toString() ).isEqualTo( "name:foobar i:[1 TO 1]" );
