@Test
public void shouldApplyFiltersBeforeAndAfterRequest() throws Exception {
// given
// - add first filter
ProxyResponseFilter filter = mock(ProxyResponseFilter.class);
when(filter.onResponse(any(HttpRequest.class), any(HttpResponse.class))).thenReturn(new HttpResponse());
proxyServlet.withFilter(httpRequest, filter);
// - add first filter with other request
HttpRequest someOtherRequest = new HttpRequest().withPath("some_other_path");
proxyServlet.withFilter(someOtherRequest, filter);
// - add second filter