/** Test of getDuration method, of class MidiNote. */
 @Test
 public void getDuration() {
   System.out.println("getDuration");
   long expResult = 3;
   MidiNote instance = new MidiNote(60, 10, expResult);
   long result = instance.getDuration();
   assertEquals(expResult, result);
 }
 public static void assertMidiNoteEqual(
     MidiNote mn, int pitch, int velocity, long startTime, long duration, int channel) {
   assertEquals(pitch, mn.getPitch());
   assertEquals(velocity, mn.getVelocity());
   assertEquals(startTime, mn.getStartTime());
   assertEquals(duration, mn.getDuration());
   assertEquals(channel, mn.getChannel());
 }
 /** Test of setDuration method, of class MidiNote. */
 @Test
 public void setDuration() {
   System.out.println("setDuration");
   long duration = 5;
   MidiNote instance = new MidiNote();
   instance.setDuration(duration);
   long result = instance.getDuration();
   assertEquals(duration, result);
 }