Logger { public Logger zone(@Nullable Element location) { this.location = location; return this; } Logger(Messager messager); void error(Object value, String reason, String resolution); void error(Object value, String reason); void error(String message); void warn(Object value, String reason, String resolution); void warn(Object value, String reason); void warn(String message); void note(Object value, String reason, String resolution); void note(Object value, String reason); void note(String message); Logger zone(@Nullable Element location); void clear(); boolean error();  }
@Test void zone() { logger.zone(null).error("message"); assertTrue(logger.error()); verify(messager).printMessage(ERROR, "message"); }