### Question:
TransactionUtils { public static byte[] generateTransactionHash( RawTransaction rawTransaction, Credentials credentials) { byte[] signedMessage = TransactionEncoder.signMessage(rawTransaction, credentials); return Hash.sha3(signedMessage); }  static byte[] generateTransactionHash(
            RawTransaction rawTransaction, Credentials credentials); static byte[] generateTransactionHash(
            RawTransaction rawTransaction, byte chainId, Credentials credentials); static String generateTransactionHashHexEncoded(
            RawTransaction rawTransaction, Credentials credentials); static String generateTransactionHashHexEncoded(
            RawTransaction rawTransaction, byte chainId, Credentials credentials);  }### Answer:
@Test public void testGenerateTransactionHash() { assertThat(generateTransactionHashHexEncoded( TransactionEncoderTest.createContractTransaction(), SampleKeys.CREDENTIALS), is("0x7e29b4e8a8b155638965cadb09ff0f7abbbc50eca9d85857c60f2d1e7bb749fd")); }
@Test public void testGenerateTransactionHash() { assertThat(generateTransactionHashHexEncoded( TransactionEncoderTest.createContractTransaction(), SampleKeys.CREDENTIALS), is("0xc3a0f520404c8cd0cb1c98be6b8e17ee32bf134ac1697d078e90422525c2d902")); }
@Test public void testGenerateTransactionHash() { assertEquals( generateTransactionHashHexEncoded( TransactionEncoderTest.createContractTransaction(), SampleKeys.CREDENTIALS), ("0xc3a0f520404c8cd0cb1c98be6b8e17ee32bf134ac1697d078e90422525c2d902")); }