### Question:
ClassResourceInfo extends BeanResourceInfo { public List<MediaType> getConsumeMime() { if (consumesTypes != null) { return JAXRSUtils.parseMediaTypes(consumesTypes); } Consumes consumes = AnnotationUtils.getClassAnnotation(getServiceClass(), Consumes.class); if (consumes != null || parent == null) { return JAXRSUtils.getConsumeTypes(consumes, defaultConsumes); } return parent.getConsumeMime(); } ClassResourceInfo(ClassResourceInfo cri);  ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass,
                             boolean theRoot, boolean enableStatic, Bus bus);  ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass,
                             boolean theRoot, boolean enableStatic, Bus bus, List<MediaType> defaultProduces,
                             List<MediaType> defaultConsumes);  ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass,
                             boolean theRoot, boolean enableStatic, boolean createdFromModel, Bus bus);  ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass,
                             boolean theRoot, boolean enableStatic, boolean createdFromModel,
                             String consumesTypes, String producesTypes, Bus bus);  ClassResourceInfo(Class<?> theResourceClass);  ClassResourceInfo(Class<?> theResourceClass, boolean theRoot);  ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass);  ClassResourceInfo(Class<?> theResourceClass, Class<?> theServiceClass, boolean theRoot); ClassResourceInfo findResource(Class<?> typedClass, Class<?> instanceClass); @Override boolean contextsAvailable(); ClassResourceInfo getSubResource(Class<?> typedClass, Class<?> instanceClass); ClassResourceInfo getSubResource(Class<?> typedClass, Class<?> instanceClass, Object instance); ClassResourceInfo getSubResource(Class<?> typedClass,
                                            Class<?> instanceClass,
                                            Object instance,
                                            boolean resolveContexts,
                                            Message message); void addSubClassResourceInfo(ClassResourceInfo cri); Collection<ClassResourceInfo> getSubResources(); Set<String> getNameBindings(); void setNameBindings(Set<String> names); Set<String> getAllowedMethods(); URITemplate getURITemplate(); void setURITemplate(URITemplate u); MethodDispatcher getMethodDispatcher(); void setMethodDispatcher(MethodDispatcher md); boolean hasSubResources(); boolean isCreatedFromModel(); ResourceProvider getResourceProvider(); void setResourceProvider(ResourceProvider rp); List<MediaType> getProduceMime(); List<MediaType> getConsumeMime(); Path getPath(); @Override boolean isSingleton(); void setParent(ClassResourceInfo parent); ClassResourceInfo getParent(); void initBeanParamInfo(ServerProviderFactory factory); @Override void clearThreadLocalProxies(); void injectContexts(Object resourceObject, OperationResourceInfo ori, Message inMessage);  }### Answer:
@Test public void testGetConsume() { ClassResourceInfo c = new ClassResourceInfo(TestClass.class); assertEquals("test/foo", c.getConsumeMime().get(0).toString()); c = new ClassResourceInfo(TestClass1.class); assertEquals("test/foo", c.getConsumeMime().get(0).toString()); c = new ClassResourceInfo(TestClass2.class); assertEquals("test/foo", c.getConsumeMime().get(0).toString()); }