### Question:
TransactionEncoder { public static byte[] encode(RawTransaction rawTransaction) { return encode(rawTransaction, null); }  static byte[] signMessage(RawTransaction rawTransaction, Credentials credentials); static byte[] signMessage(
            RawTransaction rawTransaction, byte chainId, Credentials credentials); static Sign.SignatureData createEip155SignatureData(
            Sign.SignatureData signatureData, byte chainId); static byte[] encode(RawTransaction rawTransaction); static byte[] encode(RawTransaction rawTransaction, byte chainId);  }### Answer:
@Test public void testEip155Encode() { assertThat(TransactionEncoder.encode(createEip155RawTransaction(), (byte) 1), is(Numeric.hexStringToByteArray( "f837098504a817c800825208943535353535353535" + "35353535353535353535353593313030303030303" + "0303030303030303030303080018080"))); }
@Test public void testEip155Encode() { assertThat(TransactionEncoder.encode(createEip155RawTransaction(), (byte) 1), is(Numeric.hexStringToByteArray( "0xec098504a817c800825208943535353535353535353535353535353535353535880de0" + "b6b3a764000080018080"))); }