server = new HornetQTaskServer(taskService, 5446);
Thread thread = new Thread(server);
thread.start();
Thread.sleep(500);
client = new TaskClient(new HornetQTaskClientConnector("client 1",
new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
client.connect("127.0.0.1", 5446);
MockUserInfo userInfo = new MockUserInfo();
userInfo.getEmails().put(users.get("tony"), "tony@domain.com");