DistributedPingMessage extends HighPriorityDistributionMessage { @Override public String toString() { return super.toString() + "; proxyId=" + proxyID; } DistributedPingMessage();  DistributedPingMessage(DistributedMember targetServer, ClientProxyMembershipID proxyID); @Override void toData(DataOutput out, SerializationContext context); @Override void fromData(DataInput in, DeserializationContext context); @Override int getDSFID(); @Override KnownVersion[] getSerializationVersions(); @Override String toString();  }
@Test public void testToString() { final InternalDistributedMember dummyDistributedMember = new InternalDistributedMember("localhost", 1); final InternalDistributedMember clientDistributedMember = new InternalDistributedMember("localhost", 2); final ClientProxyMembershipID proxyID = new ClientProxyMembershipID(clientDistributedMember); final DistributedPingMessage message = new DistributedPingMessage(dummyDistributedMember, proxyID); assertThat(message.toString(), matchesPattern("DistributedPingMessage@.*; proxyId=identity\\(localhost<.*>:2.*")); }