PetiteContainer pc = new PetiteContainer();
pc.registerPetiteBean(SomeService.class, null, null, null, false);
pc.registerPetiteBean(PojoAnnBean.class, "pojo", null, null, false);
assertEquals(2, pc.getTotalBeans());
PojoAnnBean pojoBean = (PojoAnnBean) pc.getBean("pojo");
SomeService ss = (SomeService) pc.getBean("someService");
assertNotNull(pojoBean);
assertNotNull(ss);
assertSame(ss, pojoBean.fservice);