public void repro() {
System.out.println("here");
GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
System.out.println("there");
ctx.load("classpath:org/springframework/issues/ReproTests-context.xml");
ctx.refresh();
Foo foo = ctx.getBean(Foo.class);
Bar bar = ctx.getBean(Bar.class);
assertThat(foo.getBar(), sameInstance(bar));