### Question:
SuperscriptCodec extends CodecImpl { @NonNull @Override public String encode(@NonNull String text) { setMax(text.length()); StringBuilder result = new StringBuilder(); char letter; for (int i = 0; i < text.length(); i++) { letter = text.charAt(i); int index = NORMAL.indexOf(letter); if (index != -1) { result.append(SUPPER_SCRIPT.charAt(index)); incConfident(); } else { result.append(letter); } } return result.toString(); }  @NonNull @Override String encode(@NonNull String text); @NonNull @Override String decode(@NonNull String text); @NonNull @Override String getName(Context context);  }### Answer:
@Test public void encode() throws Exception { Assert.assertEquals(codec.encode(TO_BE_ENCODE), TO_BE_DECODE); }