public class ServletContextBeanArchiveHandlerTest {
@Test
public void testHandleResourcePath() {
ServletContextBeanArchiveHandler handler = new ServletContextBeanArchiveHandler(new ServletContextMock());
BeanArchiveBuilder builder = handler.handle(WebAppBeanArchiveScanner.WEB_INF_CLASSES);
Collection<String> classes = builder.getClasses();
assertEquals(4, classes.size());
assertTrue(classes.contains("org.Alpha"));
assertTrue(classes.contains("org.foo.Bravo"));
assertTrue(classes.contains("org.foo.Charlie"));
assertTrue(classes.contains("org.bar.Delta"));