try {
Set<? extends NodeMetadata> nodes = client.createNodesInGroup(group, 1, template);
NodeMetadata node = get(nodes, 0);
CloudSigmaApi api = client.getContext().unwrapApi(CloudSigmaApi.class);
// Note: I wanted to use node.getHardware().getVolumes() but there is no
// way to go from a Volume to a DriveInfo
ServerInfo serverInfo = api.getServerInfo(node.getId());
Device rootDevice = get(serverInfo.getDevices().values(), 0);
DriveInfo driveInfo = api.getDriveInfo(rootDevice.getDriveUuid());
assertTrue(contains(driveInfo.getTags(), "affinity:ssd"));
} finally {
client.destroyNodesMatching(inGroup(group));
}