@Test
public void should_match_with_filters_in_order() throws Exception {

    RestxRouting routing = new RestxRouting(
            ImmutableList.of(
                    NamedComponent.of(RestxFilter.class, "F1", 0, new TestFilter("F1"))),
            ImmutableList.of(
                    NamedComponent.of(RestxRouteFilter.class, "RF1", -10, new TestRouteFilter("RF1")),
                    NamedComponent.of(RestxRouteFilter.class, "RF2", 10, new TestRouteFilter("RF2"))
            ),
            ImmutableList.<RestxRoute>of(ROUTE)
    );
    Optional<Match> m = routing.match(StdRequest.builder()
            .setHttpMethod("GET").setRestxPath("/test").setBaseUri("http://localhost/api").build());
    assertThat(m.isPresent()).isTrue();
    assertThat(m.get().getMatches()).extracting("handler.name")
            .containsExactly("RF1", "F1", "RF2", "ROUTE");
}