Map<String, Credentials> credsMap = api.getServerServices().getServerCredentialsList();
LoginCredentials instanceCredentials = LoginCredentials.fromCredentials(credsMap.get(createdServer.getName()));
assertNotNull(instanceCredentials);
HostAndPort socket = HostAndPort.fromParts(createdServer.getIp().getIp(), 22);
SocketOpen socketOpen = Guice.createInjector().getInstance(SocketOpen.class);
Predicate<HostAndPort> socketTester = retry(socketOpen, 180, 5, SECONDS);
socketTester.apply(socket);
// check that the get credentials call is the same as this
assertEquals(api.getServerServices().getServerCredentials(createdServer.getId()), instanceCredentials);