assertTrue(server.getReceievedEmailSize() == 1);
assertTrue(server.getReceivedEmailSize() == 1);
    public void testExecute() throws Exception {        page.setRequestCycle(getCycle(request, response));        User user = new User();        user.setUsername("self-registered");        user.setPassword("Password1");        user.setConfirmPassword("Password1");        user.setFirstName("First");        user.setLastName("Last");                Address address = new Address();        address.setCity("Denver");        address.setProvince("CO");        address.setCountry("USA");        address.setPostalCode("80210");                user.setAddress(address);                user.setEmail("self-registered@raibledesigns.com");        user.setWebsite("http://raibledesigns.com");        user.setPasswordHint("Password is one with you.");        page.setUser(user);                // start SMTP Server        SimpleSmtpServer server = SimpleSmtpServer.start(2525);                page.setRequestCycle(getCycle(request, response));        page.save(page.getRequestCycle());                assertFalse(page.hasErrors());                // verify an account information e-mail was sent        server.stop();        assertTrue(server.getReceievedEmailSize() == 1);        // verify that success messages are in the session        assertNotNull(page.getSession().getAttribute(Constants.REGISTERED));    }