@Test
public void retrievesRequestFiltersByPath() {

    RequestFilter embeddedRequestFilter = mock(RequestFilter.class);
    when(embeddedProviders.getRequestFilters("/a")).thenReturn(newArrayList(embeddedRequestFilter));
    PathMatchesRequestFilter pathMatchesRequestFilter = new PathMatchesRequestFilter();
    AllMatchesRequestFilter allMatchesRequestFilter = new AllMatchesRequestFilter();
    applicationProviders.addRequestFilter(pathMatchesRequestFilter);
    applicationProviders.addRequestFilter(allMatchesRequestFilter);
    assertEquals(newArrayList(allMatchesRequestFilter, embeddedRequestFilter), applicationProviders.getRequestFilters("/a"));
}