@Test
public void testFilterStartingWithFieldShouldProduceProperCriteria() throws Exception {

    Map<RequestObject, Object> filters = ImmutableMap.of(RequestField.of("name"),
            ImmutableMap.of(RequestOperator.of(OperatorType.STARTS_WITH), "John")
    );
    Criteria result = requestParamsCriteriaBuilder.build(filters);
    assertThat(result).isEqualTo(Criteria.where("name").regex("^John", "i"));
}