### Question:
AbstractPhantomJsMojo extends AbstractMojo { protected MavenProject getMavenProject() { return this.mavenProject; } @Inject  AbstractPhantomJsMojo(MavenProject mavenProject); final void execute();  }### Answer:
@Test public void testGetMavenProject() throws MojoFailureException { assertThat(mojo.getMavenProject()).isSameAs(project); }