for (InstanceHealth instanceState : response) {
checkInstanceState(instanceState);
}
if (response.size() > 0) {
InstanceHealth instanceState = response.iterator().next();
Assert.assertEquals(
ImmutableSet.of(api().getHealthOfInstancesOfLoadBalancer(ImmutableSet.of(instanceState.getInstanceId()),
loadBalancer.getName())), instanceState);
}
}
}