@SuppressWarnings({"unchecked", "rawtypes"})

@Test(expected = NullPointerException.class)
public void getOrDefaultDoesNotAcceptNullAsTargetTypeForThreeParameterVariant() {
    DefaultConfiguration c = new DefaultConfiguration(new MockedConfigurationContext());
    c.getOrDefault("a", (Class) null, "b");
}