### Question:
Base64Codec extends CodecImpl { @NonNull @Override public String decode(@NonNull String token) { setMax(1); try { byte[] decodedBytes = new Base64().decode(token.getBytes()); String result = new String(decodedBytes, Charset.forName("UTF-8")); setConfident(1); return result; } catch (Exception e) { e.printStackTrace(); setConfident(0); return token; } }  @NonNull @Override String encode(@NonNull String token); @NonNull @Override String decode(@NonNull String token); @NonNull @Override String getName(Context context);  }### Answer:
@Test public void decode() throws Exception { Assert.assertEquals(codec.decode(TO_BE_DECODE), TO_BE_ENCODE); }