    @Test
    public void postProcessBeanFactory() {

        
        Map<String, ServletRegistrationBean> servletRegistrationBeans = applicationContext.getBeansOfType(ServletRegistrationBean.class);
        Assert.assertNotNull(servletRegistrationBeans);

        // Although there are 5 sample JAX-RS Application classes, one of them is not annotated with the ApplicationPath annotation!
        Assert.assertEquals(servletRegistrationBeans.size(), 4);

        for(String applicationClassName : servletRegistrationBeans.keySet()) {
            testApplicaton(applicationClassName, servletRegistrationBeans.get(applicationClassName));
        }
        
        // check if the scanned resources and providers are found
        Assert.assertNotNull(applicationContext.getBeansOfType(TestProviderNoBean.class));
        Assert.assertNotNull(applicationContext.getBeansOfType(TestResourceNoBean.class));
    }