when(mockedCache.getProperties()).thenReturn(propCollection1, propCollection2);
DynamoDbDeploymentContextConfigurationSource testConfigSource =
new DynamoDbDeploymentContextConfigurationSource(mockedCache, DeploymentContext.ContextKey.environment);
PollResult result = testConfigSource.poll(false, null);
assertEquals(3, result.getComplete().size());
assertEquals(result.getComplete().get("foo"), "bar");
assertEquals(result.getComplete().get("goo"), "goo");
assertEquals(result.getComplete().get("boo"), "who");
result = testConfigSource.poll(false, null);
assertEquals(3, result.getComplete().size());
assertEquals(result.getComplete().get("foo"),"bar");
assertEquals(result.getComplete().get("goo"), "boo");
assertEquals(result.getComplete().get("boo"), "who");
}