#vulnerable code 
                             @Test
	public void vanilla() {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
				TestConfiguration.class);
		Service service = context.getBean(Service.class);
		service.service();
		assertEquals(3, service.getCount());
		context.close();
	} 
                            #location 9 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void vanilla() {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
				TestConfiguration.class);
		Service service = context.getBean(Service.class);
		Foo foo = context.getBean(Foo.class);
		assertFalse(AopUtils.isAopProxy(foo));
		service.service();
		assertEquals(3, service.getCount());
		context.close();
	}