@Test
public void testRuleCreationFromFileReader_withNonCompositeRuleDeclaresComposingRules() {

    // given
    File rulesDescriptor = new File("src/test/resources/non-composite-rule-with-composing-rules." + fileExtension);
    // when
    Assertions.assertThatThrownBy(() -> factory.createRule(new FileReader(rulesDescriptor)))
            // then
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("Non-composite rules cannot have composing rules");
}