service.execute(vols[i%2], new ExampleTask());
}
Exception e = null;
try {
service.execute("no_such_volume", new ExampleTask());
} catch (RuntimeException ex) {
e = ex;
}
assertNotNull("Executing a task on a non-existing volume should throw an "
+ "Exception.", e);