MusicClue extends ClueScroll implements NpcClueScroll { public static MusicClue forText(String text) { final Matcher m = SONG_PATTERN.matcher(text); if (m.find()) { final String song = m.group(1); return new MusicClue(song); } return null; }  @Override void makeOverlayHint(PanelComponent panelComponent, ClueScrollPlugin plugin); @Override void makeWorldOverlayHint(Graphics2D graphics, ClueScrollPlugin plugin); @Override String[] getNpcs(); static MusicClue forText(String text);  }
@Test public void forTextEmptyString() { assertNull(MusicClue.forText("")); }