ResponseWriter implements Serializable { protected boolean acceptsBrotliResource(HttpServletRequest request) { return acceptsEncoding(request, "br"); } ResponseWriter(DeploymentConfiguration deploymentConfiguration); private  ResponseWriter(int bufferSize, boolean brotliEnabled); void writeResponseContents(String filenameWithPath, URL resourceUrl,
            HttpServletRequest request, HttpServletResponse response);  }
@Test public void acceptsBrotliResource() { Assert.assertTrue(acceptsBrotliResource("compress, brotli")); Assert.assertFalse(acceptsBrotliResource("gzip")); Assert.assertTrue( acceptsBrotliResource("compress;q = 0.5, brotli;q=0.6")); Assert.assertTrue(acceptsBrotliResource("*")); Assert.assertFalse(acceptsBrotliResource("*;q=0")); }