@Test
	void testUserInfoWithEncodedCharacters() {
		String encodedBasicAuth = HttpHeaders.encodeBasicAuth("test", "MyPassword@", null);
		String expectedAuthHeader = "Basic " + encodedBasicAuth;
		String expectedUrl = "http://localhost:8761";

		WebClientEurekaHttpClient client = (WebClientEurekaHttpClient) transportClientFatory
			.newClient(new DefaultEndpoint("http://test:MyPassword%40@localhost:8761"));

		client.getWebClient().get().retrieve().bodyToMono(Void.class).block(Duration.ofSeconds(10));

		ClientRequest request = verifyAndGetRequest();

		assertThat(request.headers().getFirst(HttpHeaders.AUTHORIZATION)).isEqualTo(expectedAuthHeader);
		assertThat(request.url().toString()).isEqualTo(expectedUrl);
	}
@author Daniel Lavoie
@author Armin Krezovic
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/http/WebClientTransportClientFactoryTest.java