@Test
public void fail_when_custom_configuration_does_not_extend_CustomColorization() throws URISyntaxException {

    try {
        ColorConfiguration.read(new File(getClass().getClassLoader().getResource("fail-does-not-extend-CustomColorization").toURI()), CurrentMavenVersion.read());
        failBecauseExceptionWasNotThrown(RuntimeException.class);
    } catch (RuntimeException e) {
        assertThat(e.getMessage()).isEqualTo("maven.color must extends com.github.jcgay.maven.color.core.CustomColorization");
    }
}