}
@BeforeClass
public static void before() throws Exception
{
SimpleSecurityDomain domain = new SimpleSecurityDomain();
String[] roles =
{"admin"};
String[] basic =
{"user"};
domain.addUser("bill", "password", roles);
domain.addUser("mo", "password", basic);
dispatcher = EmbeddedContainer.start("", domain).getDispatcher();
dispatcher.getRegistry().addPerRequestResource(BaseResource.class);
dispatcher.getRegistry().addPerRequestResource(BaseResource2.class);
dispatcher.getRegistry().addPerRequestResource(BaseResource3.class);
}