}
@Test
public void testWebBeansScanner() throws Exception
{
WebBeansScanner scanner = new WebBeansScanner();
ServletContext servletContext = new MockServletContext();
scanner.scan(servletContext);
// try to re-run the scan
scanner.scan(servletContext);
Map<String, Set<String>> classMap = scanner.getANNOTATION_DB().getClassIndex();
Assert.assertNotNull(classMap);
Assert.assertFalse(classMap.isEmpty());
Set<String> testBeanAnnotations = classMap.get(ScannerTestBean.class.getName());
String[] expectedAnnotations = new String[] { RequestScoped.class.getName(), Named.class.getName() };