assertContains(routeChildren, endpoint, filter, endpoint2);
}
@Test
public void testLoadAndSaveOfFilterWithBlueprint() throws Exception {
RouteSupport route = assertModelRoundTrip("filterSampleBlueprint.xml", 1);
List<AbstractNode> routeChildren = route.getChildren();
Endpoint endpoint = assertChildIsInstance(route.getRootNodes(), 0, Endpoint.class);
assertEquals("endpoint uri", "seda:someWhere", endpoint.getUri());
Filter filter = assertChildIsInstance(endpoint.getOutputs(), 0, Filter.class);
assertEquals("filter expression", "/foo/bar", filter.getExpression().getExpression());
assertEquals("filter language", "xpath", filter.getExpression().getLanguage());