@Test
public void testGetSshKeys() throws Exception
{

    SshKeys keys = mock( SshKeys.class );
    doReturn( keys ).when( localPeer ).getSshKeys( TestHelper.ENVIRONMENT_ID, SshEncryptionType.DSA );
    SshKey sshKey = mock( SshKey.class );
    doReturn( Sets.newHashSet( sshKey ) ).when( keys ).getKeys();
    environmentManager.getSshKeys( TestHelper.ENV_ID, SshEncryptionType.DSA );
    verify( keys ).getKeys();
}