assertEquals(2, p4.getNumCtorHits());
// to actually inspect the list in the 'data' object in the MessageBodyReaders in the ProvidersRegistry would take a lot of
// reflection and hacking. We'll at least confirm that only 5 (due to AssetProvider) are in the ProvidersRegistry.
RestServlet servlet = (RestServlet)this.getServlet();
ServletContext context = servlet.getServletContext();
RequestProcessor processor = (RequestProcessor) context.getAttribute(RequestProcessor.class.getName());
DeploymentConfiguration config = processor.getConfiguration();
ProvidersRegistry providersRegistry = config.getProvidersRegistry();
// to confirm that the ignores are indeed happening, I need to get the private field
// "messageBodyReaders" object, then it's superclass "data" object and inspect it: