@Test
public void retrievesResponseFiltersByPath() {

    ResponseFilter embeddedResponseFilter = mock(ResponseFilter.class);
    when(embeddedProviders.getResponseFilters("/a")).thenReturn(newArrayList(embeddedResponseFilter));
    PathMatchesResponseFilter pathMatchesResponseFilter = new PathMatchesResponseFilter();
    AllMatchesResponseFilter allMatchesResponseFilter = new AllMatchesResponseFilter();
    applicationProviders.addResponseFilter(pathMatchesResponseFilter);
    applicationProviders.addResponseFilter(allMatchesResponseFilter);
    assertEquals(newArrayList(allMatchesResponseFilter, embeddedResponseFilter), applicationProviders.getResponseFilters("/a"));
}