I just added Bootstrap, which exposes public void registerBeans(Class<?>...classes); the method will register any classes passed as enterprise or simple web beans as needed, and also add all producer methods. AbstractTest creates a new Bootstrap which you can use in tests. Next up is making an implementation of the WebBeanDiscovery SPI for JBoss5.