final Plugin plugin = new Plugin("foo", "somePath", null, null);
try {
plugin.getModuleName(new ManifestLoader(){
@Override
public Manifest load(String jarPath) throws ManifestNotFound {
throw new ManifestNotFound("");
}
});
} catch (RuntimeException e) {
assertEquals(ManifestNotFound.class,
e.getCause().getClass());