GenericBeanDefinition bd = new GenericBeanDefinition();
bd.setBeanClass(AutowiredAnnotationBeanPostProcessor.class);
context.registerBeanDefinition("postProcessor", bd);
context.refresh();
ItemProcessor itemProcessor = context.getBean(ItemProcessor.class);
assertNotNull(itemProcessor);
StepSynchronizationManager.register(new StepExecution("step1", new JobExecution(5l)));
assertEquals("Test", itemProcessor.process("Test"));
StepSynchronizationManager.close();
context.close();
}