@Test
public void testGetOrCreateWriter_Null() {

    TargetPropertyWriterFactory<C1> factory = new TargetPropertyWriterFactory<>(C1.class, mock(ObjEntity.class));
    assertThrows(NullPointerException.class, () -> factory.getOrCreateWriter("dummy", "dbDummy", () -> null));
}