@Test
public void testXmlInject() {
Person person = xmlApplicationContext.getBean("person");
Assert.assertThat(person.getName(), is("Jack"));
PersonService personService = xmlApplicationContext
.getBean("personService");
List<Object> l = personService.getTestList();
Assert.assertThat(l.size(), greaterThan(0));
int i = 0;
for (Object p : l) {
if (p instanceof Person) {
person = (Person) p;