public class CreateUniqueKeyPairTest {
@Test
public void testLoad() throws UnknownHostException {
final CloudStackApi client = createMock(CloudStackApi.class);
SSHKeyPairApi keyClient = createMock(SSHKeyPairApi.class);
SshKeyPair pair = createMock(SshKeyPair.class);
expect(client.getSSHKeyPairApi()).andReturn(keyClient);
expect(keyClient.createSSHKeyPair("group-1")).andReturn(pair);
replay(client, keyClient);
CreateUniqueKeyPair parser = Guice.createInjector(new AbstractModule() {