Note { @Deprecated public byte getId() { return note; } Note(int note);  Note(int octave, Tone tone, boolean sharped); static Note flat(int octave, Tone tone); static Note sharp(int octave, Tone tone); static Note natural(int octave, Tone tone); Note sharped(); Note flattened(); @Deprecated byte getId(); int getOctave(); Tone getTone(); boolean isSharped(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void getToneByData() { for (Note.Tone tone : Note.Tone.values()) { assertThat(Note.Tone.getById(tone.getId()), is(tone)); } }
@Test public void testHighest() { Note note = new Note(2, Note.Tone.F, true); assertEquals(note.getId(), (byte)24); }
@Test public void testLowest() { Note note = new Note(0, Note.Tone.F, true); assertEquals(note.getId(), (byte)0); }