@Test public void shouldLaunchPurchaseAndStartIntentAndThenHandleActivityResultWithCanceledResultCode() throws Exception {

    shouldStartIntentAfterSuccessfulLaunchPurchase();
    Intent data = new Intent();
    data.putExtra(RESPONSE_CODE, ITEM_UNAVAILABLE.code);
    assertThat(helper.handleActivityResult(TEST_REQUEST_CODE, Activity.RESULT_CANCELED, data)).isTrue();
    verify(purchaseFinishedListener).onIabPurchaseFinished(new IabResult(ITEM_UNAVAILABLE), null);
}