@Test
public void testNoProviders() {

    Date currentDate = new Date();
    List<X509CertRecord> records = new ArrayList<>();
    // Create 6 records, each in it's own domain (domain0, domain1... domain5)
    for (int i = 0; i < 6; ++i) {
        X509CertRecord record = getMockX509CertRecord(currentDate, i);
        records.add(record);
        NotificationTestsCommon.mockDomainData(i, dataStore);
    }
    Mockito.when(instanceCertManager.getUnrefreshedCertsNotifications(eq(serverName), anyString())).thenReturn(records);
    CertFailedRefreshNotificationTask certFailedRefreshNotificationTask = new CertFailedRefreshNotificationTask(
            instanceCertManager,
            dataStore,
            hostnameResolver,
            userDomainPrefix,
            serverName,
            httpsPort);
    List<Notification> notifications = certFailedRefreshNotificationTask.getNotifications();
    assertEquals(0, notifications.size());
}