### Question:
CSSMinifierMojo extends AbstractWisdomWatcherMojo { @Override public boolean accept(File file) { return (WatcherUtils.isInDirectory(file, WatcherUtils.getExternalAssetsSource(basedir)) || (WatcherUtils.isInDirectory(file, WatcherUtils.getInternalAssetsSource(basedir))) ) && WatcherUtils.hasExtension(file, getExtensions()) && isNotMinified(file) && JavaScriptCompilerMojo.isNotInLibs(file); }  @Override void execute(); @Override boolean accept(File file); boolean isNotMinified(File file); @Override boolean fileCreated(File file); @Override boolean fileUpdated(File file); @Override boolean fileDeleted(File file); File getFilteredVersion(File input); static final String CLEANCSS_NPM_NAME; static final String CLEANCSS_NPM_VERSION; @Parameter(defaultValue = "${skipCleanCSS}")
    public boolean skipCleanCSS; @Parameter(defaultValue = "-min")
    public String cssMinifierSuffix; }### Answer:
@Test public void testAccept() throws Exception { mojo.basedir = new File("junk"); File file = new File(mojo.basedir, "src/main/resources/assets/foo.css"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/resources/assets/foo/foo.css"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/resources/assets/foo.js"); assertThat(mojo.accept(file)).isFalse(); file = new File(mojo.basedir, "src/main/foo.css"); assertThat(mojo.accept(file)).isFalse(); file = new File(mojo.basedir, "src/main/assets/foo.css"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/assets/foo/foo.css"); assertThat(mojo.accept(file)).isTrue(); file = new File(mojo.basedir, "src/main/assets/foo.js"); assertThat(mojo.accept(file)).isFalse(); file = new File(mojo.basedir, "src/main/foo.css"); assertThat(mojo.accept(file)).isFalse(); }