POP3Client client = new POP3Client();
client.connect(address.getAddress().getHostAddress(), address.getPort());
assertTrue(client.login("valid", "valid"));
assertEquals(1, client.listMessages().length);
assertTrue(client.deleteMessage(1));
assertEquals(0, client.listMessages().length);
// call RSET. After this the deleted mark should be removed again
assertTrue(client.reset());
assertEquals(1, client.listMessages().length);