private void verifyFailureWithMsg(String msg) throws Exception {
    RestRequest restRequest = getRestRequest(TailoredPeersClusterMap.DATANODE_NAMES[0]);
    try {
      sendRequestGetResponse(restRequest, new MockRestResponseChannel());
      fail("Request should have failed");
    } catch (Exception e) {
      assertEquals("Unexpected Exception", msg, e.getMessage());
    }
  }
Verifies that attempting to get peers of any datanode fails with the provided {@code msg}.
@param msg the message in the {@link Exception} that will be thrown.
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/GetPeersHandlerTest.java