CertFailedRefreshNotificationTask implements NotificationTask { @Override public String getDescription() { return DESCRIPTION; } CertFailedRefreshNotificationTask(InstanceCertManager instanceCertManager,
                                             DataStore dataStore,
                                             HostnameResolver hostnameResolver,
                                             String userDomainPrefix,
                                             String serverName,
                                             int httpsPort); @Override List<Notification> getNotifications(); @Override String getDescription();  }
@Test public void testDescription() { CertFailedRefreshNotificationTask certFailedRefreshNotificationTask = new CertFailedRefreshNotificationTask( instanceCertManager, dataStore, hostnameResolver, userDomainPrefix, serverName, httpsPort); String description = certFailedRefreshNotificationTask.getDescription(); assertEquals("certificate failed refresh notification", description); }