HttpAcceptEncodingParser { boolean acceptBrotliEncoding(HttpServletRequest httpRequest) { return acceptBrotliEncoding(httpRequest.getHeader(HTTP_HEADER_ACCEPT_ENCODING)); }    }
@Test(dataProvider = "acceptEncodingHeaderStrings") public void check_if_brotli_content_is_accepted_by_the_Accept_Encoding(String headerString, boolean expectBrotliAccepted) { assertThat(parser.acceptBrotliEncoding(headerString)).isEqualTo(expectBrotliAccepted); }
@Test public void parser_is_null_safe() throws Exception { assertThat(parser.acceptBrotliEncoding((String)null)).isFalse(); }