JdbcAddressRepository extends JdbcHelper implements AddressRepository { @Override public BitmessageAddress getAddress(String address) { List<BitmessageAddress> result = find("address = '" + address + "'"); if (result.size() > 0) return result.get(0); return null; } JdbcAddressRepository(JdbcConfig config); @Override BitmessageAddress findContact(byte[] ripeOrTag); @Override BitmessageAddress findIdentity(byte[] ripeOrTag); @Override List<BitmessageAddress> getIdentities(); @Override List<BitmessageAddress> getChans(); @Override List<BitmessageAddress> getSubscriptions(); @Override List<BitmessageAddress> getSubscriptions(long broadcastVersion); @Override List<BitmessageAddress> getContacts(); @Override void save(BitmessageAddress address); @Override void remove(BitmessageAddress address); @Override BitmessageAddress getAddress(String address);  }
@Test public void testGetAddress() throws Exception { BitmessageAddress address = repo.getAddress(IDENTITY_A); assertNotNull(address); assertNotNull(address.getPrivateKey()); }