PutKeyValueCommand cmd = new PutKeyValueCommand("k", new Object(), false, null, 0, 0, Collections.<Flag>emptySet());
try {
marshaller.objectToByteBuffer(cmd);
} catch (NotSerializableException e) {
log.info("Log exception for output format verification", e);
TraceInformation inf = (TraceInformation) e.getCause();
assert inf.toString().contains("in object java.lang.Object@");
assert inf.toString().contains("in object org.infinispan.commands.write.PutKeyValueCommand@");
}
}