component.getDefaultHost().attach( "/events", new TestApplication( assembler ) );
component.getDefaultHost().attach( "/ping", assembler.module().newObject( PingResource.class ) );
component.start();
generateTestData(assembler.module());
}
private static void generateTestData(UnitOfWorkFactory unitOfWorkFactory) throws UnitOfWorkCompletionException
{
// Set principal for the UoW