@Test
public void testGetAddresses() throws IOException {

    AccountsPersistenceUnit<AccountAddress, AccountState> unit = new AccountsPersistenceUnit<>("");
    AccountsContext accountsContext = new AccountsContext();
    PublicKey publicKeyMinting = AppServiceProvider.getShardingService().getPublicKeyForMinting(new Shard(0));
    accountsContext.setShard(AppServiceProvider.getShardingService().getShard(publicKeyMinting.getValue()));
    Accounts accounts  = new Accounts(accountsContext, unit);
    Assert.assertTrue(accounts.getAddresses()!=null );
    Assert.assertEquals(1, accounts.getAddresses().size());
}