public PolarisDiscoveryEndpoint(PolarisDiscoveryProperties polarisDiscoveryProperties,
			DiscoveryClient polarisDiscoveryClient, PolarisDiscoveryHandler polarisDiscoveryHandler) {
		this.polarisDiscoveryProperties = polarisDiscoveryProperties;
		this.polarisDiscoveryClient = polarisDiscoveryClient;
		this.polarisDiscoveryHandler = polarisDiscoveryHandler;
	}
@Test
	public void testPolarisDiscoveryEndpoint() {
		this.contextRunner.run(context -> {
			PolarisDiscoveryProperties polarisDiscoveryProperties = context
					.getBean(PolarisDiscoveryProperties.class);
			DiscoveryClient discoveryClient = context
					.getBean(PolarisDiscoveryClient.class);

			PolarisDiscoveryHandler polarisDiscoveryHandler = context.getBean(PolarisDiscoveryHandler.class);
			PolarisDiscoveryEndpoint polarisDiscoveryEndpoint = new PolarisDiscoveryEndpoint(polarisDiscoveryProperties, discoveryClient, polarisDiscoveryHandler);
			Map<String, Object> mapInfo = polarisDiscoveryEndpoint.polarisDiscovery("java_provider_test");
			assertThat(polarisDiscoveryProperties).isEqualTo(mapInfo.get("PolarisDiscoveryProperties"));

			DiscoveryClient discoveryClient1 = mock(DiscoveryClient.class);
			doReturn(Collections.singletonList("xx")).when(discoveryClient1).getServices();
			PolarisDiscoveryEndpoint polarisDiscoveryEndpoint1 = new PolarisDiscoveryEndpoint(polarisDiscoveryProperties, discoveryClient1, polarisDiscoveryHandler);
			Map<String, Object> mapInfo2 = polarisDiscoveryEndpoint1.polarisDiscovery(null);
			assertThat(polarisDiscoveryProperties).isEqualTo(mapInfo2.get("PolarisDiscoveryProperties"));
		});
	}