### Question:
IbftExtraData implements ParsedExtraData { public Bytes encode() { return encode(EncodingType.ALL); } IbftExtraData(
      final Bytes vanityData,
      final Collection<Signature> seals,
      final Optional<Vote> vote,
      final int round,
      final Collection<Address> validators); static IbftExtraData fromAddresses(final Collection<Address> addresses); static IbftExtraData decode(final BlockHeader blockHeader); Bytes encode(); Bytes encodeWithoutCommitSeals(); Bytes encodeWithoutCommitSealsAndRoundNumber(); static String createGenesisExtraDataString(final List<Address> validators); Bytes getVanityData(); Collection<Signature> getSeals(); Collection<Address> getValidators(); Optional<Vote> getVote(); int getRound(); @Override String toString(); static final int EXTRA_VANITY_LENGTH; }### Answer:
@Test public void encodingMatchesKnownRawHexString() { final Bytes expectedRawDecoding = Bytes.fromHexString(RAW_HEX_ENCODING_STRING); assertThat(DECODED_EXTRA_DATA_FOR_RAW_HEX_ENCODING_STRING.encode()) .isEqualTo(expectedRawDecoding); }