Echo implements ProgressCheck { @Override public void identifyPackage(final PackageId packageId, final File file) { echo("identifyPackage(packageId: %s, file: %s)", packageId, Optional.ofNullable(file).map(File::getAbsolutePath).orElse(null)); }  @Override Collection<Violation> getReportedViolations(); @Override String getCheckName(); @Override void identifyPackage(final PackageId packageId, final File file); @Override void identifySubpackage(final PackageId packageId, final PackageId parentId); @Override void readManifest(final PackageId packageId, final Manifest manifest); @Override void beforeExtract(final PackageId packageId, final Session inspectSession,
                              final PackageProperties packageProperties, final MetaInf metaInf,
                              final List<PackageId> subpackages); @Deprecated void importedPath(final PackageId packageId, final String path, final Node node); @Override void importedPath(final PackageId packageId, final String path, final Node node, final PathAction action); @Override void deletedPath(final PackageId packageId, final String path, final Session inspectSession); @Override void afterExtract(final PackageId packageId, final Session inspectSession); @Override void simulateSling(final SlingSimulator slingSimulator, final Set<String> runModes); @Override void identifyEmbeddedPackage(final PackageId packageId, final PackageId parentId, final EmbeddedPackageInstallable slingInstallable); @Override void beforeSlingInstall(final PackageId scanPackageId, final SlingInstallable slingInstallable, final Session inspectSession); @Override void appliedRepoInitScripts(final PackageId scanPackageId, final List<String> scripts, final SlingInstallable slingInstallable, final Session inspectSession); @Override void afterScanPackage(final PackageId scanPackageId, final Session inspectSession); @Override void startedScan(); @Override void finishedScan();  }
@Test public void testIdentifyPackage() { new Echo().identifyPackage(null, null); }