### Question:
CallerCommenter implements Commenter { @Override public String comment(String sql, CommentContext context) { return String.format("%n%s", context.getClassName(), context.getMethodName(), sql); }  @Override String comment(String sql, CommentContext context);  }### Answer:
@Test public void testComment() { CommentContext context = new CommentContext("class", "method", new MockConfig(), null, null); String actual = commenter.comment("select * from emp", context); assertEquals("" + System.lineSeparator() + "select * from emp", actual); }