### Question:
TransactionEncoder { public static byte[] encode(RawTransaction rawTransaction) { return encode(rawTransaction, null); }  static byte[] signMessage(RawTransaction rawTransaction, Credentials credentials); static byte[] signMessage(
            RawTransaction rawTransaction, long chainId, Credentials credentials); static Sign.SignatureData createEip155SignatureData(
            Sign.SignatureData signatureData, long chainId); static byte[] encode(RawTransaction rawTransaction); static byte[] encode(RawTransaction rawTransaction, long chainId);  }### Answer:
@Test public void testEip155Encode() { assertThat(TransactionEncoder.encode(createEip155RawTransaction(), NetworkParameters.MainNetParams.getChainId()), is(Numeric.hexStringToByteArray("0xec098504a817c8008252089433c98f20dd73d7bb1d533c4aa3371f2b30c6ebde880de0b6b3a764000080648080"))); }