PronomSignatureService implements SignatureUpdateService { @Override public SignatureFileInfo getLatestVersion(int currentVersion) { Holder<Version> version = new Holder<Version>(); Holder<Boolean> deprecated = new Holder<Boolean>(); pronomService.getSignatureFileVersionV1(version, deprecated); SignatureFileInfo info = new SignatureFileInfo(version.value .getVersion(), deprecated.value.booleanValue(), SignatureType.BINARY); return info; } PronomSignatureService();  PronomSignatureService(PronomService pronomService, String filenamePattern); @Override SignatureFileInfo importSignatureFile(final Path targetDir); void setPronomService(PronomService pronomService); void setFilenamePattern(String filenamePattern); @Override SignatureFileInfo getLatestVersion(int currentVersion); @Override void configurationChanged(ConfigurationEvent evt); @Override void onProxyChange(ProxySettings proxySettings); @Override void init(DroidGlobalConfig config);  }
@Test public void testGetLatestSigFileVersion() { SignatureFileInfo info = importer.getLatestVersion(1); assertTrue(info.getVersion() > 0); assertEquals(false, info.isDeprecated()); assertEquals(SignatureType.BINARY, info.getType()); }