### Question:
LabelGenerator { public void reset() { counters.clear(); shared.set(0); }  Label generate(String name); void reset();  }### Answer:
@Test void testReset() { var generator = new LabelGenerator(); assertEquals(0, generator.generate("test").getId()); generator.reset(); assertEquals(0, generator.generate("test").getId()); }