public void shouldCallMatchingFiltersAfterForwardingRequest() throws Exception {
// given
Filters filters = new Filters();
HttpResponse httpResponse = new HttpResponse();
// add first filter
HttpRequest httpRequest = new HttpRequest();
ProxyResponseFilter filter = mock(ProxyResponseFilter.class);
when(filter.onResponse(any(HttpRequest.class), any(HttpResponse.class))).thenReturn(new HttpResponse());
filters.withFilter(httpRequest, filter);
// add first filter with other request
HttpRequest someOtherRequest = new HttpRequest().withPath("some_other_path");
filters.withFilter(someOtherRequest, filter);
// add second filter
ProxyResponseFilter someOtherFilter = mock(ProxyResponseFilter.class);
filters.withFilter(someOtherRequest, someOtherFilter);