@Test public void shouldFailPurchaseWhenErrorIsReturned() throws Exception {

    shouldStartSetup_SuccessCase();
    Bundle errorResponse = new Bundle();
    errorResponse.putInt(RESPONSE_CODE, ERROR.code);
    when(service.getBuyIntent(API_VERSION, Robolectric.application.getPackageName(), "sku", "inapp", "")).thenReturn(errorResponse);
    helper.launchPurchaseFlow(mock(Activity.class), "sku", INAPP, TEST_REQUEST_CODE, purchaseFinishedListener, "");
    verify(purchaseFinishedListener).onIabPurchaseFinished(
            new IabResult(ERROR, "Unable to buy item"),
            null);
}