@Test
public void testGetTo() throws Exception {

	URI uri = new URI("mailto:infobot@example.com?subject=current-issue");
	InternetAddress to = MailTransportUtils.getTo(uri);
	Assert.assertEquals("Invalid destination", new InternetAddress("infobot@example.com"), to);
	uri = new URI("mailto:infobot@example.com");
	to = MailTransportUtils.getTo(uri);
	Assert.assertEquals("Invalid destination", new InternetAddress("infobot@example.com"), to);
}