### Question:
Hammer implements Weapon { public Hammer(Enchantment enchantment) { this.enchantment = enchantment; } Hammer(Enchantment enchantment); @Override void wield(); @Override void swing(); @Override void unwield(); @Override Enchantment getEnchantment();  }### Answer:
@Test public void testHammer() { final Hammer hammer = spy(new Hammer(mock(FlyingEnchantment.class))); testBasicWeaponActions(hammer); }
@Test void testHammer() { final var hammer = spy(new Hammer(mock(FlyingEnchantment.class))); testBasicWeaponActions(hammer); }
@Test public void testHammer() throws Exception { final Hammer hammer = spy(new Hammer(mock(FlyingEnchantment.class))); testBasicWeaponActions(hammer); }