@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));
}