@Test
public void testFactoryFailsCreatingModuleHandlerForDaysetCondition() {

    when(moduleMock.getTypeUID()).thenReturn(EphemerisConditionHandler.DAYSET_MODULE_TYPE_ID);
    when(moduleMock.getConfiguration()).thenReturn(new Configuration());
    assertThrows(IllegalArgumentException.class, () -> factory.internalCreate(moduleMock, "My first rule"));
}