ThreadScopeContextHolder.clear();
}
// assure we are logged in as a specific user to set correct authorizations
public void login(String name) {
LoginRequest request = new LoginRequest();
request.setLogin(name);
request.setPassword(name);
CommandResponse response = commandDispatcher.execute(LoginRequest.COMMAND, request, null, "en");
junit.framework.Assert.assertFalse(response.isError());
junit.framework.Assert.assertTrue(response instanceof LoginResponse);
securityManager.createSecurityContext(((LoginResponse)response).getToken());
}