### Question:
AsnBtpErrorDataCodec extends AsnBtpPacketDataCodec<BtpError> { @Override public BtpError decode() { return BtpError.builder() .requestId(getRequestId()) .errorCode(BtpErrorCode.fromCodeAsString(getValueAt(0))) .triggeredAt(getValueAt(2)) .errorData(getValueAt(3)) .subProtocols(getValueAt(4)) .build(); } AsnBtpErrorDataCodec(long requestId); @Override BtpError decode(); @Override void encode(final BtpError value);  }### Answer:
@Test public void decode() { final AsnUint8Codec uint8Codec = new AsnUint8Codec(); uint8Codec.encode((short) 2); codec.setValueAt(0, (short) 2); codec.setValueAt(1, 123L); codec.setValueAt(2, btpError); final BtpError decodedBtpError = codec.decode(); assertThat(decodedBtpError).isEqualTo(btpError); }