assertEquals(ParentException.class, getExceptionPolicyFor(support, new ParentException(), 0));
}
public void testTwoPolicyChildFirst() {
ErrorHandlerSupport support = new ShuntErrorHandlerSupport();
support.addExceptionPolicy(null, new OnExceptionDefinition(ChildException.class));
support.addExceptionPolicy(null, new OnExceptionDefinition(ParentException.class));
assertEquals(ChildException.class, getExceptionPolicyFor(support, new ChildException(), 0));
assertEquals(ParentException.class, getExceptionPolicyFor(support, new ParentException(), 0));
}