CanCommitTransactionReply extends VersionedExternalizableMessage { public static boolean isSerializedType(Object message) { return message instanceof CanCommitTransactionReply; } CanCommitTransactionReply(); private  CanCommitTransactionReply(final boolean canCommit, final short version); boolean getCanCommit(); @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out); @Override String toString(); static CanCommitTransactionReply yes(short version); static CanCommitTransactionReply no(short version); static CanCommitTransactionReply fromSerializable(final Object serializable); static boolean isSerializedType(Object message);  }
@Test public void testIsSerializedType() { assertTrue("isSerializedType", CanCommitTransactionReply.isSerializedType(new CanCommitTransactionReply())); assertFalse("isSerializedType", CanCommitTransactionReply.isSerializedType(new Object())); }