### Question:
MarkdownMojo extends AbstractWisdomWatcherMojo implements Constants { @Override public boolean accept(File file) { return WatcherUtils.hasExtension(file, extensions); }  void execute(); void process(File input); @Override boolean accept(File file); @Override boolean fileCreated(File file); @Override boolean fileUpdated(File file); @Override boolean fileDeleted(File file); static final String OUTPUT_EXTENSION; }### Answer:
@Test public void testAccept() throws MojoExecutionException { MarkdownMojo mojo = new MarkdownMojo(); mojo.basedir = basedir; mojo.buildDirectory = new File(mojo.basedir, "target"); mojo.execute(); assertThat(mojo.accept(new File("hello.md"))).isTrue(); assertThat(mojo.accept(new File("hello.markdown"))).isTrue(); assertThat(mojo.accept(new File("hello.asciidoc"))).isFalse(); assertThat(mojo.accept(new File("hello.html"))).isFalse(); mojo.extensions = ImmutableList.of("mark"); mojo.execute(); assertThat(mojo.accept(new File("hello.md"))).isFalse(); assertThat(mojo.accept(new File("hello.mark"))).isTrue(); }