}
}
@Test
public void testMailMessageHandlesSingleHeader() throws Exception {
mimeMessage.setRecipients(Message.RecipientType.TO, new Address[] {new InternetAddress("frank@localhost")});
<BUG>MailExchange exchange = endpoint.createExchange(mimeMessage);
MailMessage in = exchange.getIn();

Object header = in.getHeader("TO");</BUG>
String value = assertIsInstanceOf(String.class, header);

}
i++;
}
}
@Test
public void testMailMessageHandlesSingleHeader() throws Exception {
mimeMessage.setRecipients(Message.RecipientType.TO, new Address[] {new InternetAddress("frank@localhost")});
Exchange exchange = endpoint.createExchange(mimeMessage);
MailMessage in = (MailMessage)exchange.getIn();
assertNotNull(in);
Object header = in.getHeader("TO");
String value = assertIsInstanceOf(String.class, header);
