### Question:
Gateway3DSecureActivity extends AppCompatActivity { void intentToEmail(Uri uri) { Intent emailIntent = new Intent(Intent.ACTION_SENDTO); intentToEmail(uri, emailIntent); }   static final String EXTRA_HTML; static final String EXTRA_TITLE; static final String EXTRA_ACS_RESULT; }### Answer:
@Test public void testIntentToEmailWorksAsExpected() { Uri testUri = mock(Uri.class); Intent testIntent = new Intent(); activity.intentToEmail(testUri, testIntent); int flags = testIntent.getFlags(); assertNotEquals(0, flags & Intent.FLAG_ACTIVITY_NEW_TASK); assertEquals(testUri, testIntent.getData()); verify(activity).startActivity(testIntent); }