StandaloneYAML extends YAML { @Override protected void handle(IOException e) { messager.printMessage(ERROR, "Failed to create plugin.yml"); messager.printMessage(ERROR, e.getMessage()); } StandaloneYAML(Filer filer, Messager messager);   }
@Test void handle() { yaml.handle(new IOException("Message")); verify(messager).printMessage(Diagnostic.Kind.ERROR, "Failed to create plugin.yml"); verify(messager).printMessage(Diagnostic.Kind.ERROR, "Message"); }