t = step.getContext().get(Thing.class);
assertNotNull(t);
assertEquals(17, t.number);
step.success(null);
assertEquals(null, block.waitForBlock());
block.finishSuccess(null);
}
@SuppressWarnings("unchecked")
private static <T> T reserialize(T object) {
XStream2 xs = new XStream2();