### Question:
CaesarCodec extends CodecImpl { @NonNull @Override public String encode(@NonNull String text) { return encode(text, offset); } CaesarCodec();  CaesarCodec(int offset); @NonNull @Override String decode(@NonNull String text); @NonNull @Override String encode(@NonNull String text); @NonNull @Override String getName(Context context);  }### Answer:
@Test public void testEncode() throws Exception { String inp = "Help we are being attacked"; String encode = codec.encode(inp); assertEquals(encode, "Ifmq xf bsf cfjoh buubdlfe"); }
@Test public void testEncodeOverflow() throws Exception { String inp = "~"; String encode = codec.encode(inp); assertEquals(encode, "~"); }
@Test public void encode() { String encode = codec.encode(TO_BE_ENCODE); assertEquals(TO_BE_DECODE, encode); }