ProviderDescriptorImpl extends BaseObjectModel implements ProviderDescriptor { @Override public List<MediaType> consumes() { return consumes; } ProviderDescriptorImpl(Class<?> providerClass);  ProviderDescriptorImpl(Object provider); @Override List<MediaType> consumes(); @Override List<MediaType> produces(); String toString();  }
@Test public void providesListOfConsumedTypeForPerRequestProvider() { ProviderDescriptorImpl providerDescriptor = new ProviderDescriptorImpl(EntityProvider1.class); assertEquals(newArrayList(TEXT_PLAIN_TYPE, TEXT_XML_TYPE), providerDescriptor.consumes()); }
@Test public void providesListOfConsumedTypeForPerSingletonProvider() { ProviderDescriptorImpl providerDescriptor = new ProviderDescriptorImpl(new EntityProvider1()); assertEquals(newArrayList(TEXT_PLAIN_TYPE, TEXT_XML_TYPE), providerDescriptor.consumes()); }