private void testInjection(String type) throws Exception
{
SessionTestBean testBean = (SessionTestBean) getInitialContext().
lookup("spring-test/SessionTestBeanImpl/" + type);
Tester tester = testBean.getTester();
if (tester == null)
{
throw new RuntimeException("Tester should be injected!!");
}
assertEquals(tester.getIntegerValue(), 1);
assertEquals(tester.getStringValue(), "Ales");
}