public void testCreateSnapshotFromVolume() {
final Volume volume = getPreferredVolume(); //fail fast if none
logger.info("creating snapshot from volume %s", volume);
AsyncCreateResponse job = client.getSnapshotClient().createSnapshot(volume.getId());
assertTrue(jobComplete.apply(job.getJobId()));
Snapshot snapshot = findSnapshotWithId(job.getId());
logger.info("created snapshot %s from volume %s", snapshot, volume);
checkSnapshot(snapshot);
client.getSnapshotClient().deleteSnapshot(snapshot.getId());
}