@Test
	void testPartialDeregistrationAfterMultipleRegistrations() {
		instanceRegistry.register(fooInstanceInfo, false);
		instanceRegistry.register(fooInstanceInfo2, false);
		instanceRegistry.register(barInstanceInfo, false);
		instanceRegistry.register(barInstanceInfo2, false);

		instanceRegistry.internalCancel(fooInstanceInfo.getAppName(), fooInstanceInfo.getInstanceId(), false);

		final Map<Tags, Long> counts = Map.of(tags(fooInstanceInfo), 1L, tags(barInstanceInfo), 2L);
		assertEurekaInstance(counts);
	}
Tests for {@link EurekaInstanceMonitor}.

@author Wonchul Heo
@author Olga Maciaszek-Sharma
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaInstanceMonitorTests.java