public static YamlProcessor create(boolean withResolver) {
        try {
            return CONSTRUCTOR.newInstance(withResolver);
        } catch (final IllegalAccessException | IllegalArgumentException | InstantiationException ex) {
            throw new LinkageError("Dependencies for Yaml are not loaded correctly: " + CLASS_NAME, ex);
        } catch (final InvocationTargetException ex) {
            final Throwable targetException = ex.getTargetException();
            if (targetException instanceof RuntimeException) {
                throw (RuntimeException) targetException;
            } else if (targetException instanceof Error) {
                throw (Error) targetException;
            } else {
                throw new RuntimeException("Unexpected exception in creating: " + CLASS_NAME, ex);
            }
        }
    }
@Test
    public void create() {
        assertTrue(YamlProcessor.create(false) instanceof org.embulk.deps.config.YamlProcessorImpl);
        assertTrue(YamlProcessor.create(true) instanceof org.embulk.deps.config.YamlProcessorImpl);
    }