void Ut_UnlockNotificationSink::testWhenPrivacyModeOnAndGenericTextIdPresentAndCataloguePresentThenSummaryIsSet()
{
    sink->setLockedState(true);
    gMGConfPrivateNotificationValue = true;

    QString catalogue("translationcatalogue");

    NotificationParameters params;
    params.add(NotificationWidgetParameterFactory::genericTextIdKey(), "translationid");
    params.add(NotificationWidgetParameterFactory::genericTextCatalogueKey(), catalogue);

    Notification notification(100, GID, UID, params, Notification::ApplicationEvent, -1);

    sink->addNotification(notification);

    QCOMPARE(gInstalledTrCatalog, catalogue);
    QCOMPARE(gSetDefaultLocale, gInstalledCatalogLocale);
    QCOMPARE(gUnlockMissedEventsStub->stubCallCount ("addNotification"), 1);
    QCOMPARE(gUnlockMissedEventsStub->stubLastCallTo("addNotification").parameter<QString>(1), QString("translatedstring"));
}
void Ut_UnlockNotificationSink::testWhenPrivacyModeOffThenSummaryIsFromNotification()
{
    sink->setLockedState(true);

    QString notificationSummary("notificationsummary");

    NotificationParameters params;
    params.add(NotificationWidgetParameterFactory::summaryKey(), notificationSummary);

    Notification notification(100, GID, UID, params, Notification::ApplicationEvent, -1);

    sink->addNotification(notification);

    QCOMPARE(gUnlockMissedEventsStub->stubCallCount ("addNotification"), 1);
    QCOMPARE(gUnlockMissedEventsStub->stubLastCallTo("addNotification").parameter<QString>(1), notificationSummary);
}