### Question:
AbstractPhantomJsMojo extends AbstractMojo { @VisibleForTesting void setPhantomJsBinary(String phantomJsBinary) { this.phantomJsBinary = phantomJsBinary; } @Inject  AbstractPhantomJsMojo(MavenProject mavenProject); final void execute();  }### Answer:
@Test public void testSetPhantomJsBinary() { mojo.setPropertyName(PROPERTY_NAME); mojo.setPhantomJsBinaryProperty(BINARY_PATH); verify(properties).setProperty(PROPERTY_NAME, BINARY_PATH); }