public String getEncryptedPassword() {
        return encryptedPassword;
    }
@Test
    public void shouldEncryptMailHostPassword() throws CryptoException {
        GoCipher mockGoCipher = mock(GoCipher.class);
        when(mockGoCipher.encrypt("password")).thenReturn("encrypted");

        MailHost mailHost = new MailHost("hostname", 42, "username", "password", null, true, true, "from", "mail@admin.com", mockGoCipher);

        assertThat((String) ReflectionUtil.getField(mailHost, "password")).isEqualTo("password");
        assertThat(mailHost.getEncryptedPassword()).isEqualTo("encrypted");
    }