assertNotNull(service.getOutboundMessageProcessor());
OutboundRouterCollection router = (OutboundRouterCollection) service.getOutboundMessageProcessor();
assertNotNull(router.getCatchAllStrategy());
assertEquals(2, router.getRoutes().size());
// check first Router
OutboundRouter route1 = (OutboundRouter) router.getRoutes().get(0);
assertTrue(route1 instanceof FilteringOutboundRouter);
assertEquals(1, route1.getRoutes().size());
ImmutableEndpoint ep = (ImmutableEndpoint) route1.getRoutes().get(0);
assertNotNull(ep.getTransformers());
assertTrue(TransformerUtils.firstOrNull(ep.getTransformers()) instanceof TestCompressionTransformer);
Filter filter = ((FilteringOutboundRouter) route1).getFilter();
assertNotNull(filter);
assertTrue(filter instanceof PayloadTypeFilter);
assertEquals(String.class, ((PayloadTypeFilter) filter).getExpectedType());
// check second Router
OutboundRouter route2 = (OutboundRouter) router.getRoutes().get(1);
assertTrue(route2 instanceof FilteringOutboundRouter);
Filter filter2 = ((FilteringOutboundRouter) route2).getFilter();
assertNotNull(filter2);
assertTrue(filter2 instanceof AndFilter);