### Question:
RequestFromVertx extends Request { @Override public boolean accepts(String mimeType) { String contentType = request.headers().get(HeaderNames.ACCEPT); if (contentType == null) { contentType = MimeTypes.HTML; } if (contentType.contains(mimeType)) { return true; } MediaType input = MediaType.parse(mimeType); for (MediaType type : mediaTypes()) { if (input.is(type)) { return true; } } return false; } RequestFromVertx(final HttpServerRequest request); @Override String contentType(); @Override String encoding(); @Override String language(); @Override String charset(); @Override String uri(); @Override String method(); @Override String remoteAddress(); @Override String host(); @Override String path(); @Override MediaType mediaType(); @Override Collection<MediaType> mediaTypes(); @Override boolean accepts(String mimeType); @Override Cookies cookies(); Cookie cookie(String name); @Override Map<String, List<String>> headers(); @Override String parameter(String name); @Override List<String> parameterMultipleValues(String name); @Override String parameter(String name, String defaultValue); @Override Integer parameterAsInteger(String name); @Override Integer parameterAsInteger(String name, Integer defaultValue); @Override Boolean parameterAsBoolean(String name); @Override Boolean parameterAsBoolean(String name, boolean defaultValue); @Override Map<String, List<String>> parameters(); @Override Map<String, Object> data(); HttpServerRequest getVertxRequest(); Map<String, List<String>> getFormData(); String getRawBodyAsString(); byte[] getRawBody(); List<VertxFileUpload> getFiles(); boolean ready();  }### Answer:
@Test public void testAccepts() throws Exception { HttpRequest req = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/"); req.headers().set(HeaderNames.ACCEPT, "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp," + "*/*;q=0.8"); RequestFromVertx request = new RequestFromVertx(create(req)); assertThat(request.accepts("text/html")).isTrue(); assertThat(request.accepts("application/xhtml+xml")).isTrue(); assertThat(request.accepts("application/bla")).isFalse(); }