static MessageHeader createMessageHeader (String s) {
ByteArrayInputStream bis = new ByteArrayInputStream (s.getBytes());
MessageHeader h = new MessageHeader ();
try {
h.parseHeader (bis);
} catch (IOException e) {
throw new RuntimeException ("IOException parsing header");
}
return h;
}