### Question:
JDBCSSHRecordStore implements SSHRecordStore { @Override public void log(final Principal principal, final String ip, final String service, final String instanceId) { X509CertUtils.logSSH(SSHLOGGER, principal, ip, service, instanceId); } JDBCSSHRecordStore(PoolableDataSource src); @Override SSHRecordStoreConnection getConnection(); @Override void setOperationTimeout(int opTimeout); @Override void clearConnections(); @Override void log(final Principal principal, final String ip, final String service,
                    final String instanceId); @Override boolean enableNotifications(NotificationManager notificationManager, RolesProvider rolesProvider, final String serverName);  }### Answer:
@Test public void testLog() { PoolableDataSource mockDataSrc = Mockito.mock(PoolableDataSource.class); JDBCSSHRecordStore store = new JDBCSSHRecordStore(mockDataSrc); Principal principal = SimplePrincipal.create("user", "joe", "creds"); store.log(principal, "10.11.12.13", "athenz.api", "1234"); }