@Test
public void constructor_shouldCreateIntentWithDatestampInSubject() throws Exception {

    subject = new AdAlertReporter(context, view, adConfiguration);
    emailIntent = subject.getEmailIntent();
    String emailSubject = emailIntent.getStringExtra(Intent.EXTRA_SUBJECT);
    String subjectParts[] = emailSubject.split(" - ");
    String title = subjectParts[0];
    assertThat(title).isEqualTo("New creative violation report");
    String dateTimeString = subjectParts[1];
    SimpleDateFormat dateFormat = new SimpleDateFormat("M/d/yy hh:mm:ss a z", Locale.US);
    Date date = dateFormat.parse(dateTimeString);
    assertThat(date.getTime() - now.getTime()).isLessThan(10000);
}