@Test
public void testCmdLine() throws DependencyResolutionException, VersionRangeResolutionException,
        IOException, ArtifactResolutionException, JavadocExecutionException {

  File dest = Files.createTempDir();
  try {
    ApiDiffCmd.main(new String[]{
      "-gId", "org.spf4j",
      "-aId", "spf4j-core",
      "-fromVersion", "8.3.4",
      "-toVersion", "8.3.5",
      "-o", dest.toString(),
      "-p", "org.spf4j.concurrent", "org.spf4j.reflect"
    });
  } catch (ExitException ex) {
    Assert.assertEquals(0, ex.getExitCode());
  }
  LOG.debug("Written diff reports to: {}", dest);
  Assert.assertTrue(new File(dest, "changes.html").exists());
}