@Test
 public void testExcludeScope() throws Exception {
   final DefaultConfiguration checkConfig = createCheckConfig(JavadocVariableCheck.class);
   checkConfig.addAttribute("scope", Scope.PRIVATE.getName());
   checkConfig.addAttribute("excludeScope", Scope.PROTECTED.getName());
   final String[] expected = {
     "5:5: Missing a Javadoc comment.",
     "6:5: Missing a Javadoc comment.",
     "16:9: Missing a Javadoc comment.",
     "17:9: Missing a Javadoc comment.",
     "26:9: Missing a Javadoc comment.",
     "27:9: Missing a Javadoc comment.",
     "28:9: Missing a Javadoc comment.",
     "29:9: Missing a Javadoc comment.",
     "38:9: Missing a Javadoc comment.",
     "39:9: Missing a Javadoc comment.",
     "40:9: Missing a Javadoc comment.",
     "41:9: Missing a Javadoc comment.",
     "51:5: Missing a Javadoc comment.",
     "52:5: Missing a Javadoc comment.",
     "53:5: Missing a Javadoc comment.",
     "54:5: Missing a Javadoc comment.",
     "62:9: Missing a Javadoc comment.",
     "63:9: Missing a Javadoc comment.",
     "64:9: Missing a Javadoc comment.",
     "65:9: Missing a Javadoc comment.",
     "74:9: Missing a Javadoc comment.",
     "75:9: Missing a Javadoc comment.",
     "76:9: Missing a Javadoc comment.",
     "77:9: Missing a Javadoc comment.",
     "86:9: Missing a Javadoc comment.",
     "87:9: Missing a Javadoc comment.",
     "88:9: Missing a Javadoc comment.",
     "89:9: Missing a Javadoc comment.",
     "98:9: Missing a Javadoc comment.",
     "99:9: Missing a Javadoc comment.",
     "100:9: Missing a Javadoc comment.",
     "101:9: Missing a Javadoc comment.",
   };
   verify(checkConfig, getPath("javadoc" + File.separator + "InputNoJavadoc.java"), expected);
 }
 @Test
 public void testExcludeScope() throws Exception {
   checkConfig.addAttribute("scope", Scope.PRIVATE.getName());
   checkConfig.addAttribute("excludeScope", Scope.PROTECTED.getName());
   final String[] expected = {
     "12:5: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "13:5: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "23:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "24:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "33:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "34:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "35:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "36:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "45:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "46:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "47:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "48:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "58:5: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "59:5: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "60:5: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "61:5: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "69:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "70:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "71:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "72:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "81:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "82:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "83:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "84:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "93:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "94:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "95:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "96:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "105:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "106:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "107:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
     "108:9: " + getCheckMessage(MSG_JAVADOC_MISSING),
   };
   verify(checkConfig, getPath("javadoc" + File.separator + "InputNoJavadoc.java"), expected);
 }
 @Test
 public void testScopeAnonInnerPrivate() throws Exception {
   checkConfig.addAttribute("scope", Scope.PRIVATE.getName());
   final String[] expected = ArrayUtils.EMPTY_STRING_ARRAY;
   verify(checkConfig, getPath("InputScopeAnonInner.java"), expected);
 }