@Test
public void testToPasswordProtectedString() throws Exception {

	URLName name = new URLName("imap://john:secret@imap.example.com/INBOX");
	String result = MailTransportUtils.toPasswordProtectedString(name);
	Assert.assertEquals("Password found in string", -1, result.indexOf("secret"));
}