/**
* Test of newInstance method, of class SpringObjectFactory.
*/
@Test
public void testNewInstance() {
SimpleAction sa1 = objectFactory.newInstance(SimpleAction.class);
sa1.springInject();
SimpleAction sa2 = objectFactory.newInstance(SimpleAction.class);
sa2.springInject();
assertNotSame(sa1, sa2);
//注入的为单例bean对象
assertSame(sa1.springInject(), sa2.springInject());
}