CanCommitTransaction extends AbstractThreePhaseCommitMessage { public static boolean isSerializedType(Object message) { return message instanceof CanCommitTransaction; } CanCommitTransaction();  CanCommitTransaction(TransactionIdentifier transactionID, final short version); static CanCommitTransaction fromSerializable(Object serializable); static boolean isSerializedType(Object message);  }
@Test public void testIsSerializedType() { assertTrue("isSerializedType", CanCommitTransaction.isSerializedType(new CanCommitTransaction())); assertFalse("isSerializedType", CanCommitTransaction.isSerializedType(new Object())); }