@Test
public void constructor_shouldAddParametersTextFileToAttachmentArray() throws Exception {

    stub(context.getFilesDir()).toReturn(new File("filesDir"));
    stub(context.openFileOutput(any(String.class), any(int.class))).toReturn(mock(FileOutputStream.class));
    subject = new AdAlertReporter(context, view, adConfiguration);
    emailAttachments = subject.getEmailAttachments();
    Uri fileUri = Uri.fromFile(new File("filesDir/mp_adalert_parameters.txt"));
    assertThat(emailAttachments).contains(fileUri);
}