@Test
public void constructor_withInvalidAdConfigurationValues_shouldReturnSomethingSensible() throws Exception {

    String expectedParameters =
            "sdk_version : null\n" +
            "creative_id : null\n" +
            "platform_version : -1\n" +
            "device_model : null\n" +
            "ad_unit_id : null\n" +
            "device_locale : null\n" +
            "device_id : null\n" +
            "network_type : null\n" +
            "platform : null\n" +
            "timestamp : null" + "\n" +
            "ad_type : null\n" +
            "ad_size : {-1, -1}\n";
    stub(adConfiguration.getSdkVersion()).toReturn(null);
    stub(adConfiguration.getDspCreativeId()).toReturn(null);
    stub(adConfiguration.getPlatformVersion()).toReturn(-1);
    stub(adConfiguration.getDeviceModel()).toReturn(null);
    stub(adConfiguration.getAdUnitId()).toReturn(null);
    stub(adConfiguration.getDeviceLocale()).toReturn(null);
    stub(adConfiguration.getHashedUdid()).toReturn(null);
    stub(adConfiguration.getNetworkType()).toReturn(null);
    stub(adConfiguration.getPlatform()).toReturn(null);
    stub(adConfiguration.getTimeStamp()).toReturn(-1l);
    stub(adConfiguration.getAdType()).toReturn(null);
    stub(adConfiguration.getWidth()).toReturn(-1);
    stub(adConfiguration.getHeight()).toReturn(-1);
    subject = new AdAlertReporter(context, view, adConfiguration);
    assertThat(subject.getParameters()).isEqualTo(expectedParameters);
}