Set<? extends Snapshot> snapshots = api.listInDetail().toSet();
assertEquals(snapshots, ImmutableSet.of(testSnapshot()));
// double-check individual fields
Snapshot snappy = Iterables.getOnlyElement(snapshots);
assertEquals(snappy.getId(), "67d03df1-ce5d-4ba7-adbe-492ceb80170b");
assertEquals(snappy.getVolumeId(), "ea6f70ef-2784-40b9-9d14-d7f33c507c3f");
assertEquals(snappy.getStatus(), Volume.Status.AVAILABLE);
assertEquals(snappy.getDescription(), "jclouds test snapshot");
assertEquals(snappy.getName(), "jclouds-test-snapshot");
assertEquals(snappy.getSize(), 1);
}