ColoredString implements EnhancedString { String[] getCodeArray() { return codes; } ColoredString(String s); private  ColoredString(char[] plain, String[] codes); int length(); char charAt(int i); CharSequence subSequence(int i, int j); @Override @NotNull String toString(); @Override ColoredString replaceText(Pattern p, String rText); ColoredString patternToLower(Pattern p); ColoredString patternToUpper(Pattern p); @Override boolean equals(Object obj); @Override String getRaw();  }
@Test public void testGetCodeArray() { String[] array = testCs.getCodeArray(); assertEquals(array[4], "&0"); assertEquals(array[19], "&8"); assertEquals(array.length - 1, plain.length()); }