@Test public void testUse() { final Character character = mock(Character.class); instrument1.use(character); instrument2.use(character); verifyZeroInteractions(character); }
@Override public void use(Character character) { }
MusicalInstrument extends AbstractItem { @Override public void use(Character character) { } }
MusicalInstrument extends AbstractItem { @Override public void use(Character character) { } MusicalInstrument(MusicalInstrumentProperties properties, int amount); }
MusicalInstrument extends AbstractItem { @Override public void use(Character character) { } MusicalInstrument(MusicalInstrumentProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getSoundToPlay(); }
MusicalInstrument extends AbstractItem { @Override public void use(Character character) { } MusicalInstrument(MusicalInstrumentProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getSoundToPlay();  }