PrivateProducedBean privateProducedBean = getInstance(PrivateProducedBean.class);
Assert.assertNotNull(privateProducedBean);
Assert.assertEquals(42, privateProducedBean.getMeaningOfLife());
ProtectedProducedBean protectedProducedBean = getInstance(ProtectedProducedBean.class);
Assert.assertNotNull(protectedProducedBean);
Assert.assertEquals(42, privateProducedBean.getMeaningOfLife());
}