@Rule
public ExpectedException expectedException = ExpectedException.none();
@Test
public void getObject_availableCluster_returnsConfiguredMemcachedClient() throws Exception {
AmazonElastiCache amazonElastiCache = mock(AmazonElastiCacheClient.class);
<BUG>when(amazonElastiCache.describeCacheClusters(new DescribeCacheClustersRequest().withCacheClusterId("testCache"))).

thenReturn(new DescribeCacheClustersResult().withCacheClusters(new CacheCluster().withConfigurationEndpoint(</BUG>
new Endpoint().withAddress("localhost").withPort(45678)).withCacheClusterStatus("available").withEngine("memcached")));
ElastiCacheFactoryBean elasticCacheFactoryBean = new ElastiCacheFactoryBean(amazonElastiCache, "testCache",

@Rule
public ExpectedException expectedException = ExpectedException.none();
@Test
public void getObject_availableCluster_returnsConfiguredMemcachedClient() throws Exception {
AmazonElastiCache amazonElastiCache = mock(AmazonElastiCacheClient.class);
DescribeCacheClustersRequest testCache = new DescribeCacheClustersRequest().withCacheClusterId("testCache");
testCache.setShowCacheNodeInfo(true);
when(amazonElastiCache.describeCacheClusters(testCache)).
thenReturn(new DescribeCacheClustersResult().withCacheClusters(new CacheCluster().withConfigurationEndpoint(
new Endpoint().withAddress("localhost").withPort(45678)).withCacheClusterStatus("available").withEngine("memcached")));
ElastiCacheFactoryBean elasticCacheFactoryBean = new ElastiCacheFactoryBean(amazonElastiCache, "testCache",
