@Test public void shouldQueryInventoryWithSubscriptionsAndSkus() throws Exception {

    shouldStartSetup_SuccessCase();
    when(service.getPurchases(API_VERSION, Robolectric.application.getPackageName(), "inapp", null))
            .thenReturn(createInventoryResponseBundle("foo"));
    when(service.getPurchases(API_VERSION, Robolectric.application.getPackageName(), "subs", null))
            .thenReturn(createInventoryResponseBundle("bar"));
    when(service.getSkuDetails(eq(API_VERSION),
            eq(Robolectric.application.getPackageName()),
            eq("inapp"),
            any(Bundle.class)))
            .thenReturn(createSkuDetailsResponseBundle("foo"));
    when(service.getSkuDetails(eq(API_VERSION),
            eq(Robolectric.application.getPackageName()),
            eq("subs"),
            any(Bundle.class)))
            .thenReturn(createSkuDetailsResponseBundle("bar"));
    Inventory inventory = helper.queryInventory(true, null ,null);
    assertThat(inventory.getAllPurchases()).hasSize(2);
    assertThat(inventory.getAllOwnedSkus()).hasSize(2);
    assertThat(inventory.getSkuDetails()).hasSize(2);
}