ProtocolServer server = null;
try {
String identifier = "id";
TestPassCmdHandler factory = new TestPassCmdHandler();
factory.add("valid", new MockMailbox(identifier, MESSAGE1, MESSAGE2));
server = createServer(createProtocol(factory), address);
server.bind();
POP3Client client = createClient();
client.connect(address.getAddress().getHostAddress(), address.getPort());