@Test
void shouldChainCriteriaByAndOperationCriteria() {

    List<Predicate> predicates = opaCompilerResponse.getResult().getQueries().get(0);
    Criteria result = target.chainCriteriaByAndOperator(predicates);
    String resultInString = result.getCriteriaObject().toJson();
    assertThat(resultInString, is("{\"owner\": \"alice\", \"name\": \"fluffy\"}"));
}