### Question:
UnicodeCodec extends CodecImpl { @NonNull @Override public String decode(@NonNull String text) { setMax(1); setConfident(0); try { String result = StringEscapeUtils.unescapeJava(text); incConfident(); return result; } catch (Exception e) { return text; } }  @NonNull @Override String getName(Context context); @NonNull @Override String decode(@NonNull String text); @NonNull @Override String encode(@NonNull String text);  }### Answer:
@Test public void decode() throws Exception { String decode = codec.decode(toBeDecode); assertEquals(decode, toBeEncode); }
@Test public void decode_error() throws Exception { String result = codec.decode("\u0001"); assertEquals(result, "\u0001"); }