### Question:
TransactionApiImpl implements TransactionApi { @Override public TransactionReceiptDto getTransactionReceipt(String branchId, String txId) { return TransactionReceiptDto.createBy(branchGroup.getReceipt(BranchId.of(branchId), txId)); } @Autowired  TransactionApiImpl(BranchGroup branchGroup); @Override int getTransactionCountByBlockHash(String branchId, String blockId); @Override int getTransactionCountByBlockNumber(String branchId, long blockNumber); @Override TransactionDto getTransactionByHash(String branchId, String txId); @Override TransactionDto getTransactionByBlockHash(String branchId, String blockId,
                                                     int txIndexPosition); @Override TransactionDto getTransactionByBlockNumber(String branchId, long blockNumber,
                                                       int txIndexPosition); @Override TransactionDto getTransactionByBlockNumber(String branchId, String tag,
                                                       int txIndexPosition); @Override TransactionResponseDto sendTransaction(TransactionDto tx); @Override TransactionResponseDto sendRawTransaction(byte[] bytes); @Override int newPendingTransactionFilter(String branchId); @Override List<String> getPendingTransactionList(String branchId); @Override int getPendingTransactionCount(String branchId); @Override TransactionReceiptDto getTransactionReceipt(String branchId, String txId); @Override String getRawTransaction(String branchId, String txId); @Override String getRawTransactionHeader(String branchId, String txId);  }### Answer:
@Test public void getTransactionReceiptTest() { assertThat(txApi.getTransactionReceipt(yggdrashBranch, testTransactionHash)) .isNotNull(); }
@Test public void getNullTransactionReceiptTest() { String invalidTxHash = "bce7bce793985a1cde7791acbbeb16037d7b86b967df4213329b2e3cc45995fe"; assertThat(txApi.getTransactionReceipt(yggdrashBranch, invalidTxHash).txId) .isNull(); }