user.setPin("1234", m_coreContext.getAuthorizationRealm());
    public void testSearch() throws Exception {        User user = new User();        user.setFirstName("fIrst");        user.setLastName("last");        user.setUserName("boNGo");        m_coreContext.saveUser(user);        Collection collection = m_searchManager.search("bon*", m_identityToBean);        assertEquals(1, collection.size());        assertTrue(collection.remove(user));        collection = m_searchManager.search("userName:bongo", m_identityToBean);        assertEquals(1, collection.size());        assertTrue(collection.remove(user));        collection = m_searchManager.search("firstName:bongo", m_identityToBean);        assertEquals(0, collection.size());        user.setUserName("kuku");        m_coreContext.saveUser(user);        collection = m_searchManager.search("first", m_identityToBean);        assertEquals(1, collection.size());        assertTrue(collection.remove(user));        collection = m_searchManager.search("userName:kuku", m_identityToBean);        assertEquals(1, collection.size());        assertTrue(collection.remove(user));        collection = m_searchManager.search("bongo", m_identityToBean);        assertEquals(0, collection.size());        user.setAliasesString("aaa, bcd");        m_coreContext.saveUser(user);        collection = m_searchManager.search("aaa", m_identityToBean);        assertEquals(1, collection.size());        assertTrue(collection.remove(user));        collection = m_searchManager.search("alias:bcd", m_identityToBean);        assertEquals(1, collection.size());        assertTrue(collection.remove(user));    }