{
final DefaultConfiguration checkConfig =
createCheckConfig(VisibilityModifierCheck.class);
checkConfig.addAttribute("publicMemberPattern", "^r[A-Z]");
checkConfig.addAttribute("protectedAllowed", "true");
checkConfig.addAttribute("packageAllowed", "true");
final String[] expected = {
"17:20: Variable 'fData' must be private and have accessor methods.",
"77:20: Variable 'someValue' must be private and have accessor methods.",
};
verify(checkConfig, getPath("InputInner.java"), expected);