@Test(expected = IllegalArgumentException.class)
public void testFilterFromFieldFollowedByLogicalOperatorToLogicalOperatorShouldFail() throws Exception {

    Map<RequestObject, Object> filters = ImmutableMap.of(
            RequestField.of("name"), ImmutableMap.of(
                    RequestLogicalOperator.of(LogicalOperatorType.OR),
                    ImmutableMap.of(RequestLogicalOperator.of(LogicalOperatorType.OR),
                            ImmutableMap.of(
                                    RequestOperator.of(OperatorType.STARTS_WITH), "John",
                                    RequestOperator.of(OperatorType.IN), Lists.newArrayList("Doe", "Smith"))
                    )
            ));
    requestParamsCriteriaBuilder.build(filters);
}