System.out.println("Endpoint outputs: " + endpoint.getOutputs());
Choice choice = assertChildIsInstance(endpoint.getOutputs(), 0, Choice.class);
System.out.println("Choice outputs: " + choice.getOutputs());
When filter = assertChildIsInstance(choice.getOutputs(), 0, When.class);
Otherwise otherwise = assertChildIsInstance(choice.getOutputs(), 1, Otherwise.class);
assertEquals("when expression", "/foo/bar", filter.getExpression().getExpression());
assertEquals("when language", "xpath", filter.getExpression().getLanguage());
Endpoint endpoint2 = assertChildIsInstance(filter.getOutputs(), 0, Endpoint.class);
assertEquals("endpoint2 uri", "seda:choiceWhen", endpoint2.getUri());
Endpoint endpoint3 = assertChildIsInstance(otherwise.getOutputs(), 0, Endpoint.class);
assertEquals("endpoint3 uri", "seda:choiceOtherwise", endpoint3.getUri());