String xml =
"<key oid='HELLO' contentMime='image/png' contentMimeExtended='2.5' domain='RUGBY'>\n" +
clientTags +
"</key>\n";
MsgKeyData key = factory.readObject(xml);
GetReturnKey getKey = new GetReturnKey(glob, xml);
System.out.println("GetReturnKey: " + getKey.toXml());
assertEquals("", "HELLO", getKey.getOid());
assertEquals("", "RUGBY", getKey.getDomain());
assertEquals("", "image/png", getKey.getContentMime());
assertEquals("", "2.5", getKey.getContentMimeExtended());
assertEquals("Input='"+clientTags+"' output='"+key.getClientTags()+"'", clientTags.trim(), getKey.getClientTags());
assertEquals("", false, getKey.isInternal());
assertEquals("", false, getKey.isPluginInternal());
assertEquals("", false, getKey.isDeadMessage());
}
catch (Throwable e) {
System.out.println("Test failed: " + e.toString());
}
System.out.println("***MsgKeyFactoryTest: GetReturnKey [SUCCESS]");