public void newInstance() throws Exception {
StaticApplicationContext oContext = new StaticApplicationContext();
String oClassName = MyAction.class.getName();
oContext.registerSingleton(oClassName, MyAction.class);
SpringBeanFactory oFactory = new SpringBeanFactory();
oFactory.setApplicationContext(oContext);
Object oActual = oFactory.newInstance(MyAction.class, oClassName);
assertNotNull(oActual);
assertEquals(MyAction.class, oActual.getClass());
}