@Override
  public String toString() {
    StringBuilder s = new StringBuilder();
    if (isGatewayTag()) {
      s.append("{ds=").append(distributedSystemId).append("; time=")
          .append(getVersionTimeStamp()).append("}");
    } else {
      s.append("{v").append(entryVersion);
      s.append("; rv").append(getRegionVersion());
      if (memberID != null) {
        s.append("; mbr=").append(memberID);
      }
      if (hasPreviousMemberID()) {
        s.append("; prev=").append(previousMemberID);
      }
      if (distributedSystemId >= 0) {
        s.append("; ds=").append(distributedSystemId);
      }
      s.append("; time=").append(getVersionTimeStamp());
      if (isFromOtherMember()) {
        s.append("; remote");
      }
      if (isAllowedByResolver()) {
        s.append("; allowed");
      }
      s.append("}");
    }
    return s.toString();
  }
for unit testing receipt of version tags from another member of the cluster
geode-core/src/main/java/org/apache/geode/internal/cache/versions/VersionTag.java