@Test
public void testRuleCreationFromFileReader_withInvalidCompositeRuleType() {

    // given
    File rulesDescriptor = new File("src/test/resources/composite-rule-invalid-composite-rule-type." + fileExtension);
    // when
    Assertions.assertThatThrownBy(() -> factory.createRule(new FileReader(rulesDescriptor)))
            // then
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("Invalid composite rule type, must be one of [UnitRuleGroup, ConditionalRuleGroup, ActivationRuleGroup]");
}