@SuppressWarnings("unchecked")
List<String> instanceIds = (List<String>) collector.getVariable(ProcessVariables.INSTANCE_IDS);
DescribeInstancesResult result = client.describeInstances(new DescribeInstancesRequest()
.withInstanceIds(instanceIds));
Instance instance = result.getReservations().get(0).getInstances().get(0);
List<InstanceBlockDeviceMapping> bdm = instance.getBlockDeviceMappings();
assertThat(bdm).hasSize(2);
List<String> volumeIds = Lists.newArrayList();
for (int i = 0; i < bdm.size(); i++) {
assertThat(bdm.get(i).getDeviceName()).isEqualTo("/dev/sda" + ((i+1) * (i+1)));
assertThat(bdm.get(i).getEbs().getDeleteOnTermination()).isTrue();