@Test (expected = PluginLoaderException.class)
public void checkPluginLoaderException()
        throws Exception {

    ExpansibleURLClassLoader cl = new ExpansibleURLClassLoader(new URL[]{});
    IPluginLoaderVisitor<String> visitor = mock(IPluginLoaderVisitor.class);
    IPluginLoader<Collection<IPath>> pl = new PluginLoader(
            cl,
            (t) -> {
                throw new RuntimeException("Could not create instance of IPlugin");
            },
            visitor);
    pl.loadPlugin(null);
    fail();
}