@VisibleForTesting
  void setDirectChannel(DirectChannel dc) {
    directChannel = dc;
  }
for mock testing this allows insertion of a DirectChannel mock
geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionImpl.java