@Test
public void testGetProperties() {

    Configuration config = Configuration.current();
    DefaultConfigurationSnapshot snapshot = new DefaultConfigurationSnapshot(config,
            Arrays.asList("confkey1", "confkey2", "confkey3", "missing"));
    Map<String, String> properties = snapshot.getProperties();
    assertThat(properties).isNotNull();
    assertThat(properties).hasSize(3);
    assertThat("javaconf-value1").isEqualTo(properties.get("confkey1"));
    assertThat("javaconf-value2").isEqualTo(properties.get("confkey2"));
    assertThat("javaconf-value3").isEqualTo(properties.get("confkey3"));
    assertThat(properties.get("confkey4")).isNull();
}