@EnableElastiCache({@CacheClusterConfig(name = "firstCache"), @CacheClusterConfig(name = "secondCache")})
public static class ApplicationConfigurationWithExplicitStackConfiguration {
@Bean
public AmazonElastiCache amazonElastiCache() {
AmazonElastiCache amazonElastiCache = Mockito.mock(AmazonElastiCache.class);
<BUG>int port = TestMemcacheServer.startServer();
Mockito.when(amazonElastiCache.describeCacheClusters(new DescribeCacheClustersRequest().withCacheClusterId("firstCache"))).
</BUG>
thenReturn(new DescribeCacheClustersResult().withCacheClusters(new CacheCluster().
withConfigurationEndpoint(new Endpoint().withAddress("localhost").withPort(port)).

@EnableElastiCache({@CacheClusterConfig(name = "firstCache"), @CacheClusterConfig(name = "secondCache")})
public static class ApplicationConfigurationWithExplicitStackConfiguration {
@Bean
public AmazonElastiCache amazonElastiCache() {
AmazonElastiCache amazonElastiCache = Mockito.mock(AmazonElastiCache.class);
int port = TestMemcacheServer.startServer();
DescribeCacheClustersRequest describeCacheClustersRequest = new DescribeCacheClustersRequest().withCacheClusterId("firstCache");
describeCacheClustersRequest.setShowCacheNodeInfo(true);
Mockito.when(amazonElastiCache.describeCacheClusters(describeCacheClustersRequest)).
thenReturn(new DescribeCacheClustersResult().withCacheClusters(new CacheCluster().
withConfigurationEndpoint(new Endpoint().withAddress("localhost").withPort(port)).
