}, 30, 1, SECONDS);
assertTrue(result.apply(before + 1));
}
protected Predicate<State> createServer(String hostName) {
final ServerApi serverApi = api.getServerApi();
ServerDetails testServer = serverApi.createWithHostnameAndRootPassword(
ServerSpec.builder().datacenter("Falkenberg").platform("OpenVZ").templateName("Ubuntu 10.04 LTS 32-bit")
.diskSizeGB(5).memorySizeMB(512).cpuCores(1).transferGB(50).build(), hostName, UUID.randomUUID()
.toString().replace("-", ""));
assertNotNull(testServer.getId());