String ram = get(api.getServerServices().getRamSizes(), 1).getName();
try {
NodeMetadata node = getOnlyElement(client.createNodesInGroup(group, 1));
Server updatedServer = api.getServerServices().editServerRam(Long.valueOf(node.getId()), ram);
assertNotNull(updatedServer);
assert serverLatestJobCompleted.apply(updatedServer);
assertEquals(getLast(api.getServerServices().getServersById(Long.valueOf(node.getId()))).getRam().getName(),
ram);