@Test
public void createUriEndpointRelativeAddress() {

	String test1 = this.builder.host("127.0.0.1")
			.port(8080)
			.build()
			.createUriEndpoint("/foo", false)
			.toExternalForm();
	String test2 = this.builder.host("127.0.0.1")
			.port(8080)
			.build()
			.createUriEndpoint("/foo", true)
			.toExternalForm();
	assertThat(test1).isEqualTo("http://127.0.0.1:8080/foo");
	assertThat(test2).isEqualTo("ws://127.0.0.1:8080/foo");
}