@Test
public void errorShouldPrintMessageWithWarning() {

    // exercise
    underTest.error("This is %s message", "error");
    // verify
    verify(messager)
            .printMessage(eq(Diagnostic.Kind.ERROR), eq("This is error message"));
}