@Test public void testAnnotations() { // Check that the class is correctly annotated assertNotNull("@PreMatching annotation is required to modify headers", MediaTypeFilter.class.getAnnotation(PreMatching.class)); Priority priority = MediaTypeFilter.class.getAnnotation(Priority.class); assertNotNull("@Priority annotation is required to modify headers", priority); assertTrue("priority should be higher than HEADER_DECORATOR", priority.value() <= Priorities.HEADER_DECORATOR); }