### Question:
ServletRestfulResponse extends RestfulResponse<ServletRequestDetails> { @Override public Writer getResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip) throws IOException { addHeaders(); HttpServletResponse theHttpResponse = getRequestDetails().getServletResponse(); theHttpResponse.setCharacterEncoding(theCharset); theHttpResponse.setStatus(theStatusCode); theHttpResponse.setContentType(theContentType); if (theRespondGzip) { theHttpResponse.addHeader(Constants.HEADER_CONTENT_ENCODING, Constants.ENCODING_GZIP); return new OutputStreamWriter(new GZIPOutputStream(theHttpResponse.getOutputStream()), StandardCharsets.UTF_8); } return theHttpResponse.getWriter(); } ServletRestfulResponse(ServletRequestDetails servletRequestDetails); @Override OutputStream sendAttachmentResponse(IBaseBinary theBinary, int theStatusCode, String contentType); @Override Writer getResponseWriter(int theStatusCode, String theStatusMessage, String theContentType, String theCharset, boolean theRespondGzip); @Override final Writer sendWriterResponse(int theStatus, String theContentType, String theCharset, Writer theWriter); @Override Object returnResponse(ParseAction<?> outcome, int operationStatus, boolean allowPrefer, MethodOutcome response, String resourceName);  }### Answer:
@Test public void addMultipleHeaderValues() throws IOException { final ServletRestfulResponse response = new ServletRestfulResponse(requestDetails); response.addHeader("Authorization", "Basic"); response.addHeader("Authorization", "Bearer"); response.addHeader("Cache-Control", "no-cache, no-store"); response.getResponseWriter(200, "Status", "text/plain", "UTF-8", false); final InOrder orderVerifier = Mockito.inOrder(servletResponse); orderVerifier.verify(servletResponse).setHeader(eq("Authorization"), eq("Basic")); orderVerifier.verify(servletResponse).addHeader(eq("Authorization"), eq("Bearer")); verify(servletResponse).setHeader(eq("Cache-Control"), eq("no-cache, no-store")); }