### Question:
CommandManager implements ApplicationContextAware { public Object process(Map<String, Boolean> commandState) { Command command = createCommand(); command.setState(commandState); return command.execute(); }  Object process(Map<String, Boolean> commandState); @Override void setApplicationContext(ApplicationContext applicationContext);  }### Answer:
@Test public void testScopePrototype() throws Exception { Map<String, Boolean> state = new HashMap<String, Boolean>(); CommandManager commandManager = getBean(CommandManager.class); while (OrderUtils.order < 10) { commandManager.process(state); } }