### Question:
InlineLengthsEncryptedChunkEncoder implements EncryptedChunkEncoder { @Override public int getEncodedLengthOfChunk(EncryptedChunk chunk) { return BYTES_LENGTH + mLengthlessEncryptedChunkEncoder.getEncodedLengthOfChunk(chunk); }  @Override void writeChunkToWriter(BackupWriter writer, EncryptedChunk chunk); @Override int getEncodedLengthOfChunk(EncryptedChunk chunk); @Override @ChunkOrderingType int getChunkOrderingType(); static final int BYTES_LENGTH; }### Answer:
@Test public void getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths() { int encodedLength = mEncoder.getEncodedLengthOfChunk(mTestChunk); assertThat(encodedLength).isEqualTo(Integer.BYTES + TEST_NONCE.length + TEST_DATA.length); }