@Test
public void testGet() {

    Configuration config = Configuration.current();
    DefaultConfigurationSnapshot snapshot = new DefaultConfigurationSnapshot(config,
            Arrays.asList("confkey1", "confkey2", "confkey3"));
    assertThat("javaconf-value1").isEqualTo(snapshot.get("confkey1"));
    assertThat("javaconf-value2").isEqualTo(snapshot.get("confkey2"));
    assertThat("javaconf-value3").isEqualTo(snapshot.get("confkey3"));
    assertThat(snapshot.getOrDefault("confkey4", null)).isNull();
    assertThat("javaconf-value1").isEqualTo(snapshot.get("confkey1", String.class));
    assertThat("javaconf-value2").isEqualTo(snapshot.get("confkey2", String.class));
    assertThat("javaconf-value3").isEqualTo(snapshot.get("confkey3", String.class));
    assertThat(snapshot.getOrDefault("confkey4", String.class, null)).isNull();
    assertThat("javaconf-value1").isEqualTo(snapshot.get("confkey1", TypeLiteral.of(String.class)));
    assertThat("javaconf-value2").isEqualTo(snapshot.get("confkey2", TypeLiteral.of(String.class)));
    assertThat("javaconf-value3").isEqualTo(snapshot.get("confkey3", TypeLiteral.of(String.class)));
    assertThat((String) snapshot.getOrDefault("confkey4", TypeLiteral.of(String.class), null)).isNull();
}