public static class ApplicationConfigurationWithNoExplicitStackConfiguration {
@Bean
public AmazonElastiCache amazonElastiCache() {
AmazonElastiCache amazonElastiCache = Mockito.mock(AmazonElastiCache.class);
int port = TestMemcacheServer.startServer();
<BUG>Mockito.when(amazonElastiCache.describeCacheClusters(new DescribeCacheClustersRequest().withCacheClusterId("sampleCacheOneLogical"))).
thenReturn(new DescribeCacheClustersResult().withCacheClusters(new CacheCluster().</BUG>
withConfigurationEndpoint(new Endpoint().withAddress("localhost").withPort(port)).
withEngine("memcached")));
<BUG>Mockito.when(amazonElastiCache.describeCacheClusters(new DescribeCacheClustersRequest().withCacheClusterId("sampleCacheTwoLogical"))).
thenReturn(new DescribeCacheClustersResult().withCacheClusters(new CacheCluster().</BUG>
withConfigurationEndpoint(new Endpoint().withAddress("localhost").withPort(port)).

public static class ApplicationConfigurationWithNoExplicitStackConfiguration {
@Bean
public AmazonElastiCache amazonElastiCache() {
AmazonElastiCache amazonElastiCache = Mockito.mock(AmazonElastiCache.class);
int port = TestMemcacheServer.startServer();
DescribeCacheClustersRequest sampleCacheOneLogical = new DescribeCacheClustersRequest().withCacheClusterId("sampleCacheOneLogical");
sampleCacheOneLogical.setShowCacheNodeInfo(Boolean.TRUE);
Mockito.when(amazonElastiCache.describeCacheClusters(sampleCacheOneLogical)).
thenReturn(new DescribeCacheClustersResult().withCacheClusters(new CacheCluster().
withConfigurationEndpoint(new Endpoint().withAddress("localhost").withPort(port)).
