Note { public Note sharped() { Validate.isTrue(note < 24, "This note cannot be sharped because it is the highest known note!"); return new Note(note + 1); } 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(expected=IllegalArgumentException.class) public void testSharpWrapping2() { new Note(2, Note.Tone.F, true).sharped(); }