void setState(MockSelectorState state) {
    this.state = state;
  }
Set the state of this selector. Based on the state, connect or poll may throw, or all sends will result in
disconnections in the poll.
@param state the MockSelectorState to set this MockSelector to.
ambry-network/src/test/java/com/github/ambry/network/SocketNetworkClientTest.java