@Test
public void initializeConsumablePurchasesThrowsRemoteException() throws Exception {

    // Configure
    final Bundle getSubscriptionsResponse = new Bundle();
    getSubscriptionsResponse.putInt("RESPONSE_CODE", RESULT_OK);
    getSubscriptionsResponse.putStringArrayList("INAPP_PURCHASE_ITEM_LIST", new ArrayList<>());
    getSubscriptionsResponse.putStringArrayList("INAPP_PURCHASE_DATA_LIST", new ArrayList<>());
    getSubscriptionsResponse.putStringArrayList("INAPP_DATA_SIGNATURE_LIST", new ArrayList<>());
    when(inAppBillingService.getPurchases(3, packageName, "subs", null)).thenReturn(getSubscriptionsResponse);
    when(inAppBillingService.getPurchases(3, packageName, "inapp", null)).thenThrow(new RemoteException());
    // Test
    purchaseManager.initialize(application);
    // Verify
    verifyInAppBillingServiceConnected();
    verify(purchaseWallet).getActiveLocalInAppPurchases();
}