@Test
public void onDailyVerification_versionCheckShouldBePerformedOnceADay() {

    Mockito.when(sirenHelper.getDaysSinceLastCheck(activity)).thenReturn(0);
    siren.checkVersion(activity, SirenVersionCheckType.DAILY, APP_DESCRIPTION_URL);
    Mockito.verify(alertWrapper, Mockito.times(1)).show();
    //verification on the same day
    siren.checkVersion(activity, SirenVersionCheckType.DAILY, APP_DESCRIPTION_URL);
    Mockito.verify(alertWrapper, Mockito.times(1)).show();
    //next day verification
    Mockito.when(sirenHelper.getDaysSinceLastCheck(activity)).thenReturn(1);
    siren.checkVersion(activity, SirenVersionCheckType.DAILY, APP_DESCRIPTION_URL);
    Mockito.verify(alertWrapper, Mockito.times(2)).show();
}