m_mailServer = new MockMailServer();
serviceManager.put("mailserver", m_mailServer);
serviceManager.put("localusersrepository",
m_usersRepository);
InMemoryMailboxSessionMapperFactory factory = new InMemoryMailboxSessionMapperFactory();
manager = new InMemoryMailboxManager(factory, new Authenticator() {
public boolean isAuthentic(String userid, CharSequence passwd) {
return m_usersRepository.test(userid, passwd.toString());