Assert.assertNull("Cache after invalidate did not return null.", cache.get(key, true));
}
@Test
public void testInvalidateWithMultipleRemoteRegions() throws Exception {
EurekaServerConfig serverConfig = new DefaultEurekaServerConfig();
EurekaServerConfigurationManager.getInstance().setConfiguration(serverConfig);
ResponseCache cache = ResponseCache.getInstance();
ResponseCache.Key key1 = new ResponseCache.Key(ResponseCache.Key.EntityType.Application, REMOTE_REGION_APP_NAME,
new String[] {REMOTE_REGION, "myregion2"},
ResponseCache.KeyType.JSON, Version.V1);