### Question:
StandardVelocityToolsScanner extends AbstractVelocityToolsScanner implements ServletContextAware { @Override protected void scan(String[] sources, Map<String, VelocityTool> velocityToolsMap) { viewToolManager = ViewToolManagerInitializer.getViewToolManager(servletContext); ToolboxFactoryAdapter toolboxFactory = new ToolboxFactoryAdapter(velocityToolsMap); viewToolManager.setToolboxFactory(toolboxFactory); FactoryConfiguration factoryConfiguration = factoryConfigurationLoader.load(sources); viewToolManager.configure(factoryConfiguration); }  @Override void setServletContext(ServletContext servletContext);  }### Answer:
@Test public void testScan() { Map<String, VelocityTool> velocityToolsMap = scanner.scan(); Assert.assertFalse(velocityToolsMap.isEmpty()); }