@Test public void shouldDelegateEntrySetMethodToPropertiesInstance() { // Given final Properties properties = mock(Properties.class); final LazyProperties lazyProperties = new LazyProperties(properties, null); final Set<Map.Entry<String, Object>> expectedEntrySet = mock(Set.class); given(properties.entrySet()).willReturn(expectedEntrySet); // When final Set<Map.Entry<String, Object>> entrySet = lazyProperties.entrySet(); // Then assertSame(expectedEntrySet, entrySet); } }