@Test
public void getOrDefaultReturnDefaultIfValueWouldHaveBeenNull() {

    DefaultConfiguration c = new DefaultConfiguration(new MockedConfigurationContext());
    assertThat("ok").isEqualTo(c.getOrDefault("valueOfNull", "ok"));
    assertThat("ok").isEqualTo(c.getOrDefault("valueOfNull", String.class, "ok"));
    assertThat("ok").isEqualTo(c.getOrDefault("valueOfNull", TypeLiteral.of(String.class), "ok"));
}