@Test
public void updateRemotePurchases() {

    assertFalse(defaultPurchaseWallet.hasActivePurchase(InAppPurchase.SmartReceiptsPlus));
    final RemoteSubscription remoteSubscription = new RemoteSubscription(1, InAppPurchase.SmartReceiptsPlus, new Date());
    defaultPurchaseWallet.updateRemotePurchases(Collections.singleton(remoteSubscription));
    assertTrue(defaultPurchaseWallet.hasActivePurchase(InAppPurchase.SmartReceiptsPlus));
    // Now ensure persisted
    final PurchaseWallet newWallet = new DefaultPurchaseWallet(sharedPreferencesLazy);
    assertTrue(newWallet.hasActivePurchase(InAppPurchase.SmartReceiptsPlus));
}