// default maxLoopCount = 10
valve.setLoopBody(createPipeline(new LogValve(), new LogValve(), new LogValve()));
valve.afterPropertiesSet();
try {
pipeline.newInvocation().invoke();
fail();
} catch (TooManyLoopsException e) {
assertThat(e, exception("Too many loops: exceeds the maximum count: 10"));
}