@Test
  public void testNameToIdUnknownStatistic() {
    assertThat(type.nameToId("test")).isEqualTo(0);
    assertThatThrownBy(() -> type.nameToId("Fred"))
        .isExactlyInstanceOf(IllegalArgumentException.class);
  }
Integration tests for {@link StatisticsType} as implemented by {@link DistributedSystem}.
geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/DistributedSystemStatisticsTypeIntegrationTest.java