@Test
void collector() {

    assertThat(GCStat.collector("G1 Young Generation")).isEqualTo("young");
    assertThat(GCStat.collector("G1 Old Generation")).isEqualTo("old");
    assertThat(GCStat.collector("PS Scavenge")).isEqualTo("young");
    assertThat(GCStat.collector("PS MarkSweep")).isEqualTo("old");
    assertThat(GCStat.collector("Copy")).isNull();
}