RequestURI { static String reconstruct(final HttpRequest request) { final StringBuilder url = new StringBuilder(); reconstruct(request, url); return url.toString(); } private  RequestURI();   }
@Test void shouldReconstructWithoutSchemeAndAuthority() { assertThat(reconstruct(request, PATH, QUERY), is("/admin?limit=1")); }
@Test void shouldReconstructWithoutPath() { assertThat(reconstruct(request, SCHEME, AUTHORITY, QUERY), is("http: }
@Test void shouldReconstructWithoutQuery() { assertThat(reconstruct(request, SCHEME, AUTHORITY, PATH), is("http: }
@Test void shouldReconstructWithoutSchemeAuthorityAndPath() { assertThat(reconstruct(request, QUERY), is("/?limit=1")); }
@Test void shouldReconstructUsingBuilder() { StringBuilder builder = new StringBuilder(); reconstruct(request, builder); assertThat(builder.toString(), is("http: }
@Test void shouldReconstructSpecificComponents() { String r = reconstruct(request, EnumSet.of(SCHEME, AUTHORITY, PATH)); assertThat(r, is("http: }
@Test void shouldReconstructWithoutSchema() { assertThat(reconstruct(request, AUTHORITY, PATH, QUERY), is(" }
@Test void shouldReconstructWithoutAuthority() { assertThat(reconstruct(request, SCHEME, PATH, QUERY), is("http: }