// the native library is not available, so these tests should be skipped
authSocket = null;
}
assumeThat(authSocket, notNullValue());
SshAgent client = new AgentClient(authSocket);
List<SshAgent.Pair<PublicKey, String>> keys = client.getIdentities();
assertNotNull(keys);
assertEquals(0, keys.size());
KeyPair[] k = Utils.createTestHostKeyProvider().loadKeys();
client.addIdentity(k[0], "");
keys = client.getIdentities();
assertNotNull(keys);
assertEquals(1, keys.size());
client.removeIdentity(k[0].getPublic());
keys = client.getIdentities();
assertNotNull(keys);
assertEquals(0, keys.size());
client.removeAllIdentities();
client.close();
agent.close();
}