assertEquals("http://www.domain.org/%20", this.uriBuilder.build()
.toString());
}
public void testStaticFromPath() throws Exception {
ExtendedUriBuilder uriBuilder = ExtendedUriBuilder.fromPath("path");
assertEqualUriBuilder(null, null, null, null, "path", null, null,
uriBuilder, true);
assertEqualsURI("path", uriBuilder);
uriBuilder = ExtendedUriBuilder.fromPath("path1/path2/abc.html");
assertEqualUriBuilder(null, null, null, null, "path1/path2/abc",
".html", null, uriBuilder, true);
assertEqualsURI("path1/path2/abc.html", uriBuilder);
uriBuilder = ExtendedUriBuilder
.fromPath("path1/path2;mp1=mv 1;mp2=mv2/abc.html");
assertEqualUriBuilder(null, null, null, null,
"path1/path2;mp1=mv%201;mp2=mv2/abc", ".html", null,
uriBuilder, false);
assertEquals("path1/path2;mp1=mv%201;mp2=mv2/abc.html", uriBuilder
.build().toString());
final String path = "path1/path2;mp1=mv1" + Reference.encode("?")
+ ";mp2=mv2/abc.html";
uriBuilder = ExtendedUriBuilder.fromPath(path);