### Question:
AbstractPhantomJsMojo extends AbstractMojo { public final void execute() throws MojoFailureException { if (!skip) { this.run(); } } @Inject  AbstractPhantomJsMojo(MavenProject mavenProject); final void execute();  }### Answer:
@Test public void testExecute() throws MojoFailureException { mojo.execute(); verify(mojo).run(); }