@Test
public void sortPropertyFilter() {

    // setup
    DefaultConfigurationBuilder b = new DefaultConfigurationBuilder();
    PropertyFilter[] propertyFilters = new PropertyFilter[10];
    for (int i = 0; i < propertyFilters.length; i++) {
        propertyFilters[i] = (value, ctx) -> value.setValue(toString() + " - ");
    }
    b.addPropertyFilters(propertyFilters);
    Comparator<PropertyFilter> pfComp = (o1, o2) -> o1.toString().compareTo(o2.toString());
    //test
    assertThat(b.sortPropertyFilter(pfComp).getClass()).isEqualTo(DefaultConfigurationBuilder.class);
    Arrays.sort(propertyFilters, pfComp);
    for (int i = 0; i < propertyFilters.length; i++) {
        assertThat(b.getPropertyFilters().get(i)).isEqualTo(propertyFilters[i]);
    }
}