@Test
public void getAvailableConsumablePurchasesWithSomeAvailable() throws Exception {

    // Configure
    final Bundle getSkuDetailsResponse = new Bundle();
    getSkuDetailsResponse.putInt("RESPONSE_CODE", RESULT_OK);
    getSkuDetailsResponse.putStringArrayList("DETAILS_LIST", new ArrayList<>(Collections.singletonList(getSkuDetails(InAppPurchase.OcrScans50))));
    when(inAppBillingService.getSkuDetails(eq(3), eq(packageName), eq("inapp"), bundleCaptor.capture())).thenReturn(getSkuDetailsResponse);
    // Test
    purchaseManager.getAvailableConsumablePurchases().test()
            // Verify
            .assertValue(Collections.singleton(getSkuDetailsAsAvailablePurchase(InAppPurchase.OcrScans50)))
            .assertComplete()
            .assertNoErrors();
    verify(purchaseWallet, never()).addLocalInAppPurchaseToWallet(any(ManagedProduct.class));
    verify(purchaseWallet, never()).updateLocalInAppPurchasesInWallet(anySetOf(ManagedProduct.class));
    assertEquals(bundleCaptor.getValue().getStringArrayList("ITEM_ID_LIST"), InAppPurchase.getConsumablePurchaseSkus());
}