FileCertRecordStore implements CertRecordStore { @Override public boolean enableNotifications(NotificationManager notificationManager, RolesProvider rolesProvider, final String serverName) { LOGGER.warn("Notifications not supported"); return false; } FileCertRecordStore(File rootDirectory); @Override CertRecordStoreConnection getConnection(); @Override void setOperationTimeout(int opTimeout); @Override void clearConnections(); @Override void log(final Principal principal, final String ip, final String provider,
                    final String instanceId, final X509Certificate x509Cert); @Override boolean enableNotifications(NotificationManager notificationManager, RolesProvider rolesProvider, final String serverName);  }
@Test public void testEnableNotifications() { FileCertRecordStore store = new FileCertRecordStore(new File("/tmp")); boolean isEnabled = store.enableNotifications(null, null, null); assertFalse(isEnabled); NotificationManager notificationManager = Mockito.mock(NotificationManager.class); RolesProvider rolesProvider = Mockito.mock(RolesProvider.class); String serverName = "testServer"; isEnabled = store.enableNotifications(notificationManager, rolesProvider, serverName); assertFalse(isEnabled); }