}
@Test
public void testSetCurrentWorkspace() throws Exception {
Session session = sessionManager.getSession();
SqlWorkspace sqlWorkspace = new SqlWorkspace();
sqlWorkspace.setWorkspaceId("WORKSPACE_1");
sqlWorkspace.setDisplayTitle("workspace1");
session.save(sqlWorkspace);
User user = sqlUserRepository.addUser("123", "abc", null, null, new String[0]);
sqlUserRepository.setCurrentWorkspace(user.getUserId(), sqlWorkspace.getWorkspaceId());
SqlUser testUser = (SqlUser) sqlUserRepository.findById(user.getUserId());
assertEquals("workspace1", testUser.getCurrentWorkspace().getDisplayTitle());
}