@Test
void getRepositoriesWithInvalid() throws Exception
{

    // We define 2 repositories: a valid one and an invalid one.
    // The goal is to verify that the invalid one is ignored but a warning is reported in the logs.
    this.source.setProperty("extension.repositories", Arrays.asList("id:type:http://url", "invalid"));
    assertEquals(
        Arrays.asList(new DefaultExtensionRepositoryDescriptor("id", "type", new URI("http://url"))),
        new ArrayList<>(this.configuration.getExtensionRepositoryDescriptors()));
    assertEquals(1, this.logCapture.size());
    assertEquals("Ignoring invalid repository configuration [invalid]. Root cause "
        + "[ExtensionManagerConfigurationException: Invalid repository configuration format for [invalid]. Should "
        + "have been matching [([^:]+):([^:]+):(.+)].]", this.logCapture.getMessage(0));
}