DeserializingInterceptor implements Interceptor { public boolean accepts(ResourceMethod method) { return method.containsAnnotation(Consumes.class); } DeserializingInterceptor(HttpServletRequest servletRequest, Deserializers deserializers,
			MethodInfo methodInfo, Container container, Status status); boolean accepts(ResourceMethod method); void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance);  }
@Test public void shouldOnlyAcceptMethodsWithConsumesAnnotation() throws Exception { assertTrue(interceptor.accepts(consumeXml)); assertFalse(interceptor.accepts(doesntConsume)); }