user = m_core.loadUserByUserNameOrAlias("userwithnoaliases"); assertNotNull(user); assertEquals("userwithnoaliases", user.getUserName());
    public void testLoadUserByUserNameOrAlias() throws Exception {        TestHelper.cleanInsertFlat("common/UserSearchSeed.xml");        User user = m_core.loadUserByUserNameOrAlias("2");        assertNotNull(user);        assertEquals("userseed2", user.getUserName());        user = m_core.loadUserByUserNameOrAlias("two");        assertNotNull(user);        assertEquals("userseed2", user.getUserName());        user = m_core.loadUserByUserNameOrAlias("5");        assertNotNull(user);        assertEquals("userseed5", user.getUserName());        assertNull(m_core.loadUserByUserNameOrAlias("666"));        user = m_core.loadUserByUserNameOrAlias("userseed2");        assertNotNull(user);        assertEquals("userseed2", user.getUserName());    }