diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java index 50e4d0ad9e..92b731553e 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/VolumeClientLiveTest.java @@ -108,6 +108,11 @@ public class VolumeClientLiveTest extends BaseCloudStackClientLiveTest { } } + public void testGetVolumeNonexistantId() { + Volume found = client.getVolumeClient().getVolume(-1); + assertNull(found); + } + public void testCreateVolumeFromDiskofferingInZoneAndDeleteVolume() { // Pick some disk offering long diskOfferingId = Iterables.get(client.getOfferingClient().listDiskOfferings(), 0).getId();