@Test
    void testGetParameters() {
        final SimpleRequestBuilder builder = SimpleRequestBuilder.get(URI.create("https://host:3456/stuff?p0=p0"));
        builder.addParameter("p1", "v1");
        builder.addParameters(new BasicNameValuePair("p2", "v2"), new BasicNameValuePair("p3", "v3"));
        builder.addParameter(new BasicNameValuePair("p3", "v3.1"));
        Assertions.assertEquals("GET", builder.getMethod());
        Assertions.assertEquals("https", builder.getScheme());
        Assertions.assertEquals(new URIAuthority("host", 3456), builder.getAuthority());
        Assertions.assertEquals("/stuff?p0=p0", builder.getPath());
        assertThat(builder.getParameters(), NameValuePairsMatcher.same(
                new BasicNameValuePair("p1", "v1"), new BasicNameValuePair("p2", "v2"),
                new BasicNameValuePair("p3", "v3"), new BasicNameValuePair("p3", "v3.1")));
        final SimpleHttpRequest request = builder.build();
        assertThat(request.getPath(), CoreMatchers.equalTo("/stuff?p0=p0&p1=v1&p2=v2&p3=v3&p3=v3.1"));
        Assertions.assertNull(request.getBody());
    }
Simple tests for {@link SimpleResponseBuilder} and {@link SimpleRequestBuilder}.
httpclient5/src/test/java/org/apache/hc/client5/http/async/methods/TestSimpleMessageBuilders.java