}
// takes a few minutes and requires an extra server (used 1 already)
@Test(enabled=false)
public void testCloneServer() throws Exception {
ServerDetails testServer2 = serverApi.clone(serverId, testHostName2, CloneServerOptions.Builder.cpucores(1));
assertNotNull(testServer2.getId());
assertEquals(testServer2.getHostname(), "jclouds-test2");
assertTrue(testServer2.getIps().isEmpty());
testServerId2 = testServer2.getId();
Predicate<State> cloneChecker = statusChecker(serverApi, testServerId2);
assertTrue(cloneChecker.apply(Server.State.STOPPED));
serverApi.start(testServer2.getId());
// TODO ServerStatus==STOPPED suggests the previous call to start should have worked
cloneChecker = retry(new Predicate<Server.State>() {
public boolean apply(Server.State value) {
ServerStatus status = serverApi.getStatus(testServerId2, ServerStatusOptions.Builder.state());