public class EndpointSummaryTest {
@Test
public void testEndpointSummary() throws Exception {
RouteContainer routeContainer = new RouteContainer();
// from seda:a -> filter -> seda:b
RouteSupport route1 = new Route();
routeContainer.addChild(route1);
Endpoint endpoint1 = new Endpoint("seda:a");
route1.addChild(endpoint1);
Filter filter1 = new Filter();
endpoint1.addTargetNode(filter1);
Endpoint endpoint2 = new Endpoint("seda:b");
filter1.addTargetNode(endpoint2);
// from seda:b -> filter -> seda:c
RouteSupport route2 = new Route();
routeContainer.addChild(route2);
Endpoint endpoint3 = new Endpoint("seda:b");
route2.addChild(endpoint3);
Filter filter2 = new Filter();