public Integer getHostPort() {
    return hostPort;
  }
A class that mocks the server (data node) and provides methods for sending requests and setting error states.
ambry-router/src/test/java/com/github/ambry/router/MockServer.java