MessageFileHandler { public void writeFileContentToResponse(final HttpServletRequest req, final HttpServletResponse resp, final String pathInfo, final Path path) throws IOException { logFileHandler.writeFileContentToResponse(req, resp, pathInfo, path); }  void writeFileNamesToResponse(final HttpServletResponse resp, final Path path); void writeFileContentToResponse(final HttpServletRequest req, final HttpServletResponse resp, final String pathInfo, final Path path);  }
@Test public void testWriteFileContentToResponse() throws IOException { String pathInfo = "test"; underTest.writeFileContentToResponse(request, response, pathInfo, path); verify(logFileHandler).writeFileContentToResponse(request, response, pathInfo, path); }