### Question:
IabHelper { public void queryInventoryAsync(final boolean querySkuDetails, final List<String> moreSkus, final List<String> moreSubSkus, final QueryInventoryFinishedListener listener) { if (isDisposed()) { if (listener != null) { listener.onQueryInventoryFinished(new IabResult(Response.IABHELPER_DISPOSED), null); } return; } checkSetupDone("queryInventory"); new QueryInventoryTask(this, listener).execute(new QueryInventoryTask.Args(querySkuDetails, moreSkus, moreSubSkus)); } IabHelper(Context ctx, String base64PublicKey);  IabHelper(Context ctx, SignatureValidator validator); void startSetup(final OnIabSetupFinishedListener listener); void dispose(); void launchPurchaseFlow(final Activity activity,
                                   final String sku,
                                   final ItemType itemType,
                                   final int requestCode,
                                   final OnIabPurchaseFinishedListener listener,
                                   final String developerPayload); boolean handleActivityResult(int requestCode, int intentResultCode, Intent intent); Inventory queryInventory(boolean querySkuDetails,
                                    List<String> moreItemSkus,
                                    List<String> moreSubsSkus); void queryInventoryAsync(final boolean querySkuDetails,
                                    final List<String> moreSkus,
                                    final List<String> moreSubSkus,
                                    final QueryInventoryFinishedListener listener); void queryInventoryAsync(final QueryInventoryFinishedListener listener); void consume(Purchase purchase); void consumeAsync(Purchase purchase, OnConsumeFinishedListener listener); void consumeAsync(List<Purchase> purchases, OnConsumeMultiFinishedListener listener); boolean subscriptionsSupported(); void enableDebugLogging(boolean enable, String tag); void enableDebugLogging(boolean enable);  }### Answer:
@Test public void queryInventoryAsync() throws Exception { shouldStartSetup_CheckForSubscriptions_Unavailable(); QueryInventoryFinishedListener listener = mock(QueryInventoryFinishedListener.class); Bundle response = createInventoryResponseBundle("foo"); when(service.getPurchases(API_VERSION, Robolectric.application.getPackageName(), "inapp", null)) .thenReturn(response); helper.queryInventoryAsync(false, null, null, listener); verify(listener).onQueryInventoryFinished(eq(new IabResult(OK)), any(Inventory.class)); }