Object fiTestBean = repository.create("FITestBean");
assertNotNull(fiTestBean);
assertTrue(fiTestBean instanceof FITestBean);
FITestBean bean = (FITestBean) fiTestBean;
// single field injection
assertEquals("value", bean.getAttr());
// prefer setter injection to field injection
assertEquals("IS_LOWER", bean.getUpperCaseAttr());
// support cascaded injection 'bean.name' via fields
assertEquals("aName", bean.getBeanName());
// fail if field-injection is not specified
try {
repository.create("FIFailureTestBean");
Assert.fail("Expected exception");