@Test
public void testStaticResourcesProcessorCanHandle() throws Exception {

    ServletContext servletContext = ServletContext.contextWithMapperAndClassLoader(null,null,"sample.jar");
    Processor processor = new HttpStaticResourcesProcessor(servletContext);
    HttpResponse response = new HttpResponse(ByteBuffer.allocate(1024));
    Map<String, String> headers = new HashMap<>();
    headers.put("Sec-Fetch-Dest", "image");
    headers.put("Connection", "Keep-Alive");
    headers.put("User-Agent", "Apache-HttpClient/4.5.3 (Java/1.8.0_232)");
    headers.put("Accept-Encoding", "gzip,deflate");
    HttpRequest request = HttpRequest.newBuilder()
            .setMethod("GET")
            .setHttpVersion("HTTP/1.1")
            .setHeaders(headers)
            .setPath("/favicon.ico")
            .build();
    processor.process(request,response);
    byte[] actual = response.getBodyBytes();
    byte[] except = FileUtils.readBytes(new File("core/src/test/resources/favicon.ico"));
    assertArrayEquals(except, actual);
}