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