### Question:
YamlProcessor { 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); } } }  static YamlProcessor create(boolean withResolver); abstract Object load(String data); abstract Object load(InputStream data); abstract String dump(Object data);  }### Answer:
@Test public void create() { assertTrue(YamlProcessor.create(false) instanceof YamlProcessorImpl); assertTrue(YamlProcessor.create(true) instanceof YamlProcessorImpl); }