@Before
  public void setUp() throws Exception {
    Properties props = new Properties();
    props.setProperty(MCAST_PORT, "0");
    props.setProperty(LOCATORS, "");
    props.setProperty(NAME, getUniqueName());
    system = DistributedSystem.connect(props);

    StatisticDescriptor[] stats = {factory().createIntGauge("test", "TEST", "ms")};

    type = factory().createType(getUniqueName(), "TEST", stats);
  }
Integration tests for {@link StatisticsType} as implemented by {@link DistributedSystem}.
geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/DistributedSystemStatisticsTypeIntegrationTest.java