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