### Question:
UnusedMethod extends BugChecker implements CompilationUnitTreeMatcher { private static boolean exemptedByName(Name name) { return Ascii.toLowerCase(name.toString()).startsWith(EXEMPT_PREFIX); }  @Override Description matchCompilationUnit(CompilationUnitTree tree, VisitorState state);  }### Answer:
@Test public void exemptedByName() { helper .addSourceLines( "Unuseds.java", "package unusedvars;", "class ExemptedByName {", " private void unused1(int a, int unusedParam) {", " int unusedLocal = a;", " }", "}") .doTest(); }