StubResponseHeaderConfigurer { public void setErrorResponseContentTypeAndStatus(final HttpServletResponse resp) { resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); resp.setContentType(MimeType.TEXT.getOfficialMimeType()); }  void addWilmaInfoToResponseHeader(final HttpServletRequest req, final HttpServletResponse resp, final String dialogDescriptorName); void setResponseContentTypeAndStatus(final HttpServletResponse resp, final ResponseDescriptorDTO responseDescriptorDTO); void setErrorResponseContentTypeAndStatus(final HttpServletResponse resp);  }
@Test public void testSetErrorResponseContentTypeAndStatusShouldSetContentTypeAndStatusCodeOnResponse() { underTest.setErrorResponseContentTypeAndStatus(response); verify(response).setStatus(anyInt()); verify(response).setContentType(Matchers.anyString()); }