### Question:
VisaCheckoutFacade { static void onActivityResult(BraintreeFragment fragment, int resultCode, Intent data) { try { Class<?> visaCheckoutClass = Class.forName(sVisaCheckoutClassName); Method onActivityResult = visaCheckoutClass.getDeclaredMethod("onActivityResult", BraintreeFragment.class, int.class, Intent.class); onActivityResult.invoke(null, fragment, resultCode, data); } catch (ClassNotFoundException e) { } catch (NoSuchMethodException e) { } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } catch (NoClassDefFoundError e) { } }    }### Answer:
@Test public void onActivityResult_invokesOnActivityResultOnVisaCheckoutBraintreeClass() { VisaCheckoutFacade.sVisaCheckoutClassName = ShadowVisaCheckout.class.getName(); mockStatic(ShadowVisaCheckout.class); mFragment.onActivityResult(BraintreeRequestCodes.VISA_CHECKOUT, AppCompatActivity.RESULT_OK, mIntent); verifyStatic(); ShadowVisaCheckout.onActivityResult(mFragment, AppCompatActivity.RESULT_OK, mIntent); }