@Test
public void testConfigurationFileIllegal() {

    assertThatThrownBy(() -> Configuration.initConfiguration("src/test/resources/illegal-configuration.yaml"))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessageMatching("configuration file: .* is not a legal YAML file or has invalid configurations");
}