### Question:
JavaScriptCompilerMojo extends AbstractWisdomWatcherMojo implements Constants { @Override public boolean accept(File file) { return (WatcherUtils.isInDirectory(file, WatcherUtils.getExternalAssetsSource(basedir)) || (WatcherUtils.isInDirectory(file, WatcherUtils.getInternalAssetsSource(basedir))) ) && WatcherUtils.hasExtension(file, "js", "coffee") && isNotMinified(file) && isNotInLibs(file); }  @Override void execute(); @Override boolean accept(File file); static boolean isNotInLibs(File file); boolean isNotMinified(File file); File getMinifiedFile(File file); @Override boolean fileCreated(File file); @Override boolean fileUpdated(File file); @Override boolean fileDeleted(File file); @Parameter(defaultValue = "WHITESPACE_ONLY")
    public CompilationLevel googleClosureCompilationLevel; @Parameter(defaultValue = "false")
    public boolean googleClosurePrettyPrint; @Parameter(defaultValue = "${skipGoogleClosure}")
    public boolean skipGoogleClosure; @Parameter(defaultValue = "-min")
    public String googleClosureMinifierSuffix; @Parameter(defaultValue = "// -- Input %num% -- //")
    public String googleClosureInputDelimiter; @Parameter(defaultValue = "true")
    public boolean googleClosureMap; static final String COMPILE_TITLE; }### Answer:
@Test public void testAccept() throws Exception { JavaScriptCompilerMojo mojo = new JavaScriptCompilerMojo(); mojo.basedir = new File("junk"); File file = new File(mojo.basedir, "src/main/resources/assets/foo.js"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/resources/assets/foo/foo.js"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/resources/assets/foo.css"); assertThat(mojo.accept(file)).isFalse(); file = new File(mojo.basedir, "src/main/foo.js"); assertThat(mojo.accept(file)).isFalse(); file = new File(mojo.basedir, "src/main/assets/foo.js"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/assets/foo/foo.js"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/assets/foo.css"); assertThat(mojo.accept(file)).isFalse(); file = new File(mojo.basedir, "src/main/foo.js"); assertThat(mojo.accept(file)).isFalse(); }