@Test(dependsOnMethods = "testCreateAndStartServer")
 public void testConnectivity() throws Exception {
   HostAndPort vncsocket = HostAndPort.fromParts(server.getVnc().getIp(), 5900);
   Logger.getAnonymousLogger().info("awaiting vnc: " + vncsocket);
   assert socketTester.apply(vncsocket) : server;
   HostAndPort sshsocket = HostAndPort.fromParts(server.getNics().get(0).getDhcp(), 22);
   Logger.getAnonymousLogger().info("awaiting ssh: " + sshsocket);
   assert socketTester.apply(sshsocket) : server;
   doConnectViaSsh(server, getSshCredentials(server));
 }
 protected void checkStartedServer() {
   System.out.println(new Gson().toJson(server));
   assertNotNull(server.getUuid());
   assertNotNull(server.getUser());
   assertEquals(server.getName(), prefix);
   assertEquals(server.isPersistent(), true);
   assertEquals(
       server.getDevices(),
       ImmutableMap.of("ide:0:0", new IDEDevice.Builder(0, 0).uuid(drive.getUuid()).build()));
   assertEquals(server.getBootDeviceIds(), ImmutableSet.of("ide:0:0"));
   assertEquals(server.getNics().get(0).getDhcp(), server.getVnc().getIp());
   assertEquals(server.getNics().get(0).getModel(), Model.E1000);
   assertEquals(server.getStatus(), ServerStatus.ACTIVE);
 }