}
public void testBuildMethods() {
UriBuilder builder = new UriBuilderImpl();
String[] segments = new String[] {"some", "{v1}", "path{v2}", "{v3}", "a+b{v4}"};
builder.host("localhost").port(8080).segment(segments).fragment("{v5}");
// build
URI uri = builder.build("path", "Ex", "a#b", "c%2Bd", "frag");
String uriString = uri.toString();
assertEquals("//localhost:8080/some/path/pathEx/a%23b/a+bc%252Bd#frag", uriString);