assertThat(bdm.get(i).getDeviceName()).isEqualTo("/dev/sda" + ((i+1) * (i+1)));
assertThat(bdm.get(i).getEbs().getDeleteOnTermination()).isTrue();
volumeIds.add(bdm.get(i).getEbs().getVolumeId());
}
DescribeVolumesResult volumesResult = client.describeVolumes(
new DescribeVolumesRequest().withVolumeIds(volumeIds));
for (Volume volume : volumesResult.getVolumes()) {
assertThat(volume.getState()).isIn(Lists.newArrayList("creating", "available", "in-use"));
}
assertThat(volumesResult.getVolumes().get(0).getSize()).isNotEqualTo(volumesResult.getVolumes().get(1).getSize());
}