@Test
public void testFilterStartingWithLogicalOperatorFollowedByFieldShouldProduceProperCriteria() throws Exception {

    Map<RequestObject, Object> filters = ImmutableMap.of(RequestLogicalOperator.of(LogicalOperatorType.OR),
            ImmutableMap.of(
                    RequestField.of("count"), ImmutableMap.of(RequestOperator.of(OperatorType.LESS_THAN), 5)
            ));
    Criteria result = requestParamsCriteriaBuilder.build(filters);
    assertThat(result).isEqualTo(new Criteria().orOperator(Criteria.where("count").lt(5)));
}