@Test
void shouldConcatenateAndConstraints() {

    SqlPredicate sqlPredicate1 = new SqlPredicate("pets.owner", "=", "alice");
    SqlPredicate sqlPredicate2 = new SqlPredicate("pets.name", "=", "fluffy");
    List<SqlPredicate> predicates = List.of(sqlPredicate1, sqlPredicate2);
    String result = SqlUtil.concatByAndOperation(predicates);
    assertThat(result, is("(pets.owner = 'alice' AND pets.name = 'fluffy')"));
}