m_writer = new OutputStreamWriter(m_telnetClient.getOutputStream());
}
private MockServiceManager setUpServiceManager() {
MockServiceManager serviceManager = new MockServiceManager();
SimpleConnectionManager connectionManager = new SimpleConnectionManager();
connectionManager.enableLogging(new MockLogger());
serviceManager.put(JamesConnectionManager.ROLE, connectionManager);
MockMailServer mailServer = new MockMailServer();
serviceManager.put(MailServer.ROLE, mailServer);
m_mockUsersRepository = mailServer.getUsersRepository();
serviceManager.put(UsersRepository.ROLE, m_mockUsersRepository);