@Test public void testProcessResponseShouldReturnWithResponseBodyWhenProcessorListIsEmpty() { processors.clear(); byte[] actual = underTest.processResponse(req, resp, responseBody); assertEquals(actual, responseBody); }
public byte[] processResponse(final HttpServletRequest req, final HttpServletResponse resp, final byte[] responseBody) { byte[] result = responseBody; for (ResponseProcessor processor : responseProcessors) { result = processor.process(req, resp, result); } return result; }
StubResponseProcessor { public byte[] processResponse(final HttpServletRequest req, final HttpServletResponse resp, final byte[] responseBody) { byte[] result = responseBody; for (ResponseProcessor processor : responseProcessors) { result = processor.process(req, resp, result); } return result; } }
StubResponseProcessor { public byte[] processResponse(final HttpServletRequest req, final HttpServletResponse resp, final byte[] responseBody) { byte[] result = responseBody; for (ResponseProcessor processor : responseProcessors) { result = processor.process(req, resp, result); } return result; }  }
StubResponseProcessor { public byte[] processResponse(final HttpServletRequest req, final HttpServletResponse resp, final byte[] responseBody) { byte[] result = responseBody; for (ResponseProcessor processor : responseProcessors) { result = processor.process(req, resp, result); } return result; }  byte[] processResponse(final HttpServletRequest req, final HttpServletResponse resp, final byte[] responseBody); void setResponseProcessors(final List<ResponseProcessor> responseProcessors); }
StubResponseProcessor { public byte[] processResponse(final HttpServletRequest req, final HttpServletResponse resp, final byte[] responseBody) { byte[] result = responseBody; for (ResponseProcessor processor : responseProcessors) { result = processor.process(req, resp, result); } return result; }  byte[] processResponse(final HttpServletRequest req, final HttpServletResponse resp, final byte[] responseBody); void setResponseProcessors(final List<ResponseProcessor> responseProcessors);  }