private void initiateAndVerifyResourceGoesDownExactlyAtThresholdFailures() {
    for (int i = 0; i < FAILURE_COUNT_THRESHOLD; i++) {
      assertFalse(policy.isDown());
      assertFalse(policy.isHardDown());
      policy.onError();
    }
    assertTrue(policy.isDown());
    assertFalse(policy.isHardDown());
  }
This should be called at base state - when the resource is unconditionally up with no outstanding errors.
ambry-clustermap/src/test/java/com/github/ambry/clustermap/FixedBackoffResourceStatePolicyTest.java