public GaugeAssert hasValue(Condition<? super Double> condition) {
    double value = actual.value();
    if (!condition.matches(value)) {
      failWithMessage("Expected gauge to have value <%s> but value was <%s>", condition, value);
    }
    return myself;
  }
Verifies that the gauge has a value that satisfies the given condition.

@param condition the criteria against which to evaluate the gauge's count
@return this assertion object
@throws AssertionError if the gauge is {@code null}
@throws AssertionError if the condition rejects the gauge's value
geode-junit/src/main/java/org/apache/geode/test/micrometer/GaugeAssert.java