@Test
public void constructor_shouldProperlyConstructParametersTextFile() throws Exception {

    String expectedParameters =
            "sdk_version : 1.15.2.2\n" +
            "creative_id : \n" +
            "platform_version : 1\n" +
            "device_model : android\n" +
            "ad_unit_id : abc\n" +
            "device_locale : US\n" +
            "device_id : UDID\n" +
            "network_type : unknown\n" +
            "platform : android\n" +
            "timestamp : " + getCurrentDateTime() + "\n" +
            "ad_type : interstitial\n" +
            "ad_size : {480, 320}\n";
    stub(adConfiguration.getSdkVersion()).toReturn("1.15.2.2");
    stub(adConfiguration.getDspCreativeId()).toReturn("");
    stub(adConfiguration.getPlatformVersion()).toReturn(1);
    stub(adConfiguration.getDeviceModel()).toReturn("android");
    stub(adConfiguration.getAdUnitId()).toReturn("abc");
    stub(adConfiguration.getDeviceLocale()).toReturn("US");
    stub(adConfiguration.getHashedUdid()).toReturn("UDID");
    stub(adConfiguration.getNetworkType()).toReturn("unknown");
    stub(adConfiguration.getPlatform()).toReturn("android");
    stub(adConfiguration.getTimeStamp()).toReturn(now.getTime());
    stub(adConfiguration.getAdType()).toReturn("interstitial");
    stub(adConfiguration.getWidth()).toReturn(480);
    stub(adConfiguration.getHeight()).toReturn(320);
    subject = new AdAlertReporter(context, view, adConfiguration);
    assertThat(subject.getParameters()).isEqualTo(expectedParameters);
}