assertTrue(client.login(ADMIN_USERNAME, ADMIN_PASSWORD));
assertTrue(FTPReply.isPositiveCompletion(client.noop()));
}
public void testClientCertificates() throws Exception {
FtpIoSession session = server.getListener("default")
.getActiveSessions().iterator().next();
assertEquals(1, session.getClientCertificates().length);
X509Certificate cert = (X509Certificate) session
.getClientCertificates()[0];
assertTrue(cert.getSubjectDN().toString().contains("FtpClient"));
}