### Question:
SecretNotAllowedRule extends BaseTreeVisitor implements JavaFileScanner { boolean isSecret(String name) { return name.toLowerCase().contains("secret"); }  @Override void scanFile(JavaFileScannerContext context); @Override void visitMethod(MethodTree tree); @Override void visitVariable(VariableTree tree);  }### Answer:
@Test public void notSecret() { assertFalse(rule.isSecret("other")); }
@Test public void lowercase() { assertTrue(rule.isSecret("secret")); }
@Test public void uppercase() { assertTrue(rule.isSecret("SECRET")); }
@Test public void camelcase() { assertTrue(rule.isSecret("isSecretName")); }