@Test
public void initializeWithNewRemoteSubscriptions() throws Exception {

    RemoteSubscription mockSubscription = mock(RemoteSubscription.class);
    when(mockSubscription.getInAppPurchase()).thenReturn(InAppPurchase.SmartReceiptsPlus);
    when(remoteSubscriptionManager.getNewRemoteSubscriptions()).thenReturn(Observable.just(Collections.singleton(mockSubscription)));
    purchaseManager.initialize(application);
    verifyInAppBillingServiceConnected();
    verify(listener1).onPurchaseSuccess(InAppPurchase.SmartReceiptsPlus, PurchaseSource.Remote);
    verify(listener2).onPurchaseSuccess(InAppPurchase.SmartReceiptsPlus, PurchaseSource.Remote);
    verifyZeroInteractions(listener3);
}