### Question:
ChaosSSHCredentials implements SSHCredentials { @Override public Map<PublicKey, PrivateKey> getSSHKeys () { return sshKeys; }  @Override String getUsername(); @Override Callable<String> getPasswordGenerator(); @Override Map<PublicKey, PrivateKey> getSSHKeys(); @Override boolean isSupportSudo(); @Override SSHCredentials withUsername(String username); @Override SSHCredentials withPasswordGenerator(Callable<String> passwordGenerator); @Override SSHCredentials withKeyPair(String privateKey, String publicKey); @Override SSHCredentials withKeyPair(PrivateKey privateKey, PublicKey publicKey); @Override SSHCredentials withSupportSudo(boolean supportSudo); @Override List<AuthMethod> getAuthMethods();  }### Answer:
@Test public void getSSHKeys () { PrivateKey privateKey = privateKeyFromString(PRIVATE_KEY); PublicKey publicKey = publicKeyFromPrivateKey(privateKey, null); assertEquals(Collections.singletonMap(publicKey, privateKey), sshCredentials.getSSHKeys()); }