assertEquals("Executing Pipeline Valve[#0/3, level 1]", handle.toString());
}
@Test
public void handle_status() {
pipeline = createPipeline(new LogValve(), new LogValve(), new LogValve());
// init status
PipelineInvocationHandle handle = pipeline.newInvocation();
assertFalse(handle.isBroken());
assertFalse(handle.isFinished());
// finish status
handle.invoke();
assertFalse(handle.isBroken());
assertTrue(handle.isFinished());
// broken status
pipeline = createPipeline(new LogValve(), new LogAndBreakValve(), new LogValve());
handle = pipeline.newInvocation();
handle.invoke();
assertTrue(handle.isBroken());
assertFalse(handle.isFinished());