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