### Question:
Gun implements Tickable { public void reset() { ticks = 0; canFire = true; } Gun(int ticksPerBullets); void reset(); @Override void tick(); boolean tryToFire();  }### Answer:
@Test public void testReset() { Gun gun = new Gun(5); assertTrue(gun.tryToFire()); assertFalse(gun.tryToFire()); gun.tick(); assertFalse(gun.tryToFire()); assertFalse(gun.tryToFire()); gun.tick(); assertFalse(gun.tryToFire()); assertFalse(gun.tryToFire()); gun.reset(); assertTrue(gun.tryToFire()); assertFalse(gun.tryToFire()); }