@Test
public void testInvalidLibjars()
        throws Exception
{

    try {
        ConfigSource config = loadConfigSource(configLoader, "config/embulk_mapred_invalid_libjars_config.yml")
                .merge(configLoader.newConfigSource().set("exec", ImmutableMap.of("type", getPluginName())));
        embulk.run(config);
        fail();
    }
    catch (Throwable t) {
        assertTrue(t instanceof PartialExecutionException);
        assertTrue(t.getCause() instanceof RuntimeException);
        assertTrue(t.getCause().getCause() instanceof FileNotFoundException);
    }
}