assertContentTypeInfo(null, "application/octet-stream", new BytesMessageImpl());
assertEquals(null, ruleSet.getContentTypeInfo(new ObjectMessageImpl()));
}
public void test2() throws Exception {
Message message = new BytesMessageImpl();
message.setStringProperty("contentType", "application/xml");
assertContentTypeInfo("contentType", "application/xml", message);
message = new TextMessageImpl();
message.setStringProperty("ctype", "application/xml");
assertContentTypeInfo("ctype", "application/xml", message);
assertContentTypeInfo(null, "text/xml", new TextMessageImpl());
assertContentTypeInfo(null, "text/xml", new BytesMessageImpl());
}