	@Test
	public void getInstancesOneInstance() {

		String serviceId = "billing";
		ApplicationDetail applicationDetail = ApplicationDetail.builder().id("billing1").name("billing").instances(1)
				.memoryLimit(1024).stack("cflinux2").diskQuota(1024).requestedState("Running").runningInstances(1)
				.urls("billing.apps.example.com", "billing.apps.internal").build();
		given(this.cloudFoundryService.getApplicationInstances(serviceId))
				.willReturn(Flux.just(Tuples.of(applicationDetail, InstanceDetail.builder().index("0").build())));
		List<ServiceInstance> instances = this.discoveryClient.getInstances(serviceId);

		assertThat(instances).hasSize(1);
		assertThat(instances.get(0)).isEqualTo(new DefaultServiceInstance(serviceId, "0.billing.apps.internal", 8080,
				false, new HashMap<String, String>() {
					{
						put("applicationId", "billing1");
						put("instanceId", "0");
					}
				}));
	}