private static Consumer<Statistics> withNumericId(long numericId) {
    return statistics -> when(statistics.getNumericId()).thenReturn(numericId);
  }
Creates a consumer that assigns the given numeric ID to a mock statistics.
geode-core/src/test/java/org/apache/geode/internal/statistics/StatisticsRegistryTest.java