void ensure(DataNode dataNode, HardwareState state) {
    assertEquals(dataNode.getState(), state);
    for (DiskId disk : dataNode.getDisks()) {
      assertEquals(disk.getState(), state);
    }
  }
Test on get http2 port.
@throws Exception
ambry-clustermap/src/test/java/com/github/ambry/clustermap/DataNodeTest.java