### Question:
WingdingCodec extends CodecImpl { @NonNull @Override public String encode(@NonNull String text) { System.out.println("WingdingCodec.encode"); System.out.println("text = " + text); System.out.println(text.length()); setMax(text.length()); setConfident(0); StringBuilder encoded = new StringBuilder(); text = text.toUpperCase(); for (int i = 0; i < text.length(); i++) { if (WING_DINGS_MAP.get(text.charAt(i)) != null) { int temp = WING_DINGS_MAP.get(text.charAt(i)); encoded.append((Character.toChars(temp))); incConfident(); } else { encoded.append(text.charAt(i)); } } return encoded.toString(); }  @NonNull @Override String decode(@NonNull String text); @NonNull @Override String encode(@NonNull String text); @NonNull @Override String getName(Context context);  }### Answer:
@Test public void encode() throws Exception { String encode = codec.encode(TO_BE_ENCODE); Assert.assertEquals(encode, TO_BE_DECODE); }