@Test
public void redundant() {

    final BooleanNormalizer eliminator = BooleanNormalizer.forConfiguration(
            RecordQueryPlannerConfiguration.builder().setCheckForDuplicateConditions(true).build());
    assertExpectedNormalization(Query.or(Query.and(P1, P2, P3), Query.and(P1, P2, P4, P3)),
            Query.and(P1, Query.or(Query.and(P2, P3), Query.and(P2, P4, P3))));
    assertExpectedNormalization(eliminator, Query.and(P1, P2, P3),
            Query.and(P1, Query.or(Query.and(P2, P3), Query.and(P2, P4, P3))));
}