### Question:
BytesValueRLPInput extends AbstractRLPInput { @Override public Bytes raw() { return value; } BytesValueRLPInput(final Bytes value, final boolean lenient);  BytesValueRLPInput(
      final Bytes value, final boolean lenient, final boolean shouldFitExactly); @Override Bytes raw();  }### Answer:
@Test public void readAsRlp() { final Bytes nullValue = h("0x80"); final RLPInput nv = RLP.input(nullValue); assertThat(nv.readAsRlp().raw()).isEqualTo(nv.raw()); nv.reset(); assertThat(nv.nextIsNull()).isTrue(); assertThat(nv.readAsRlp().nextIsNull()).isTrue(); final Bytes emptyList = h("0xc0"); final RLPInput el = RLP.input(emptyList); assertThat(el.readAsRlp().raw()).isEqualTo(emptyList); el.reset(); assertThat(el.readAsRlp().enterList()).isEqualTo(0); el.reset(); assertThat(el.enterList()).isEqualTo(0); final Bytes nestedList = RLP.encode( out -> { out.startList(); out.writeByte((byte) 0x01); out.writeByte((byte) 0x02); out.startList(); out.writeByte((byte) 0x11); out.writeByte((byte) 0x12); out.startList(); out.writeByte((byte) 0x21); out.writeByte((byte) 0x22); out.endList(); out.endList(); out.endList(); }); final RLPInput nl = RLP.input(nestedList); final RLPInput compare = nl.readAsRlp(); assertThat(compare.raw()).isEqualTo(nl.raw()); nl.reset(); nl.enterList(); nl.skipNext(); assertThat(nl.readAsRlp().raw()).isEqualTo(h("0x02")); assertThat(nl.readAsRlp().raw()).isEqualTo(h("0xc51112c22122")); nl.reset(); nl.enterList(); nl.skipNext(); nl.skipNext(); nl.enterList(); nl.skipNext(); nl.skipNext(); assertThat(nl.readAsRlp().raw()).isEqualTo(h("0xc22122")); }
@Test public void raw() { final Bytes initial = h("0xc80102c51112c22122"); final RLPInput in = RLP.input(initial); assertThat(in.raw()).isEqualTo(initial); }