@Test
public void testLogicalOperator() throws Exception {

    Map<String, Object> rawFilters = readFiltersFromResources("LogicalOperator.json");
    Map<RequestObject, Object> filters = FiltersParser.parseFilters(rawFilters);
    Assertions.assertThat(filters)
            .hasSize(1)
            .containsOnlyKeys(RequestLogicalOperator.of(LogicalOperatorType.OR));
    assertThat((Map) filters.get(RequestLogicalOperator.of(LogicalOperatorType.OR)))
            .hasSize(2)
            .containsEntry(RequestField.of("name"), ImmutableMap.of(RequestOperator.of(OperatorType.EQUAL), "John"))
            .containsEntry(RequestField.of("surname"), ImmutableMap.of(RequestOperator.of(OperatorType.STARTS_WITH), "Doe"));
}