return input.getName().equals(vswitchName);
}
});
vswitch.setNetworkServiceType(nst);
Datastore datastore = find(machine.getDatastores(), new Predicate<Datastore>() {
@Override
public boolean apply(Datastore input) {
return input.getName().equals(datastoreName);
}
});
datastore.setEnabled(true);
machine.setRack(rack);
machine.save();
assertNotNull(machine.getId());
}