WifImporter { public WifImporter importIdentity(BitmessageAddress identity) { ctx.addresses().save(identity); return this; } WifImporter(BitmessageContext ctx, File file);  WifImporter(BitmessageContext ctx, String data);  WifImporter(BitmessageContext ctx, InputStream in, Pubkey.Feature... features); List<BitmessageAddress> getIdentities(); WifImporter importAll(); WifImporter importAll(Collection<BitmessageAddress> identities); WifImporter importIdentity(BitmessageAddress identity);  }
@Test public void testImportIdentity() throws Exception { List<BitmessageAddress> identities = importer.getIdentities(); importer.importIdentity(identities.get(0)); verify(repo, times(1)).save(identities.get(0)); }