### Question:
Statue extends Entity { @Override public void update() { if (++ frames == delay) { shootLightning(); frames = 0; } } Statue(int id);  Statue(int id, int delay); @Override void update();  }### Answer:
@Test public void testUpdateForPendingShoot() { statue.frames = 10; statue.update(); Assert.assertEquals(11, statue.frames); }
@Test public void testUpdateForShooting() { statue.frames = 19; statue.update(); Assert.assertEquals(0, statue.frames); }