@Test
public void assertOrderIsCorrectWithQualifiers()
{
Set<Annotation> qualifiers = new HashSet<Annotation>();
qualifiers.add(new CatchQualifierLiteral());
List<HandlerMethod<? extends Throwable>> handlers = new ArrayList<HandlerMethod<? extends Throwable>>(
storage.getHandlersForException(NullPointerException.class, bm, qualifiers, false));
assertThat(handlers.size(), is(6));