DataExistsReply extends VersionedExternalizableMessage { public static boolean isSerializedType(Object message) { return message instanceof DataExistsReply; } DataExistsReply();  DataExistsReply(final boolean exists, final short version); boolean exists(); @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out); static DataExistsReply fromSerializable(final Object serializable); static boolean isSerializedType(Object message);  }
@Test public void testIsSerializedType() { assertTrue("isSerializedType", DataExistsReply.isSerializedType(new DataExistsReply())); assertFalse("isSerializedType", DataExistsReply.isSerializedType(new Object())); }