@Test
public void getAvailableSubscriptionsThrowsRemoteException() throws Exception {

    // Configure
    final Bundle getSkuDetailsResponse = new Bundle();
    getSkuDetailsResponse.putInt("RESPONSE_CODE", RESULT_ERROR);
    when(inAppBillingService.getSkuDetails(eq(3), eq(packageName), eq("subs"), bundleCaptor.capture())).thenThrow(new RemoteException());
    // Test
    purchaseManager.getAvailableSubscriptions().test()
            // Verify
            .assertNoValues()
            .assertNotComplete()
            .assertError(RemoteException.class);
    verifyZeroInteractions(purchaseWallet);
    assertEquals(bundleCaptor.getValue().getStringArrayList("ITEM_ID_LIST"), InAppPurchase.getSubscriptionSkus());
}