ChatNotificationsPlugin extends Plugin { @VisibleForTesting static String stripColor(String str) { return str.replaceAll("(<col=[0-9a-f]+>|</col>)", ""); }  @Override void startUp(); @Subscribe void onGameStateChanged(GameStateChanged event); @Subscribe void onConfigChanged(ConfigChanged event); @Subscribe void onChatMessage(ChatMessage chatMessage);  }
@Test public void testStripColor() { assertEquals("you. It", ChatNotificationsPlugin.stripColor("you. <col=ff0000>It")); }