@Test(expected = IabException.class) public void shouldQueryInventoryButServiceReturnsInconsistentData() throws Exception {

    shouldStartSetup_CheckForSubscriptions_Unavailable();
    Bundle response = new Bundle();
    response.putStringArrayList(RESPONSE_INAPP_ITEM_LIST, asArrayList()); // NB empty list here
    response.putStringArrayList(RESPONSE_INAPP_PURCHASE_DATA_LIST, asArrayList("{}"));
    response.putStringArrayList(RESPONSE_INAPP_SIGNATURE_LIST, asArrayList(""));
    response.putString(INAPP_CONTINUATION_TOKEN, "");
    Bundle skuDetails = new Bundle();
    skuDetails.putInt(RESPONSE_CODE, OK.code);
    when(service.getPurchases(API_VERSION, Robolectric.application.getPackageName(), "inapp", null))
            .thenReturn(response);
    when(service.getSkuDetails(eq(API_VERSION),
            eq(Robolectric.application.getPackageName()),
            eq("inapp"),
            any(Bundle.class)))
            .thenReturn(skuDetails);
    helper.queryInventory(true, null, null);
}