@Test
public void testGetContractTxReceipt() throws Exception {

  // given
  final ContractTemplate contractTemplate = new ContractTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final ContractTxReceipt expected = ContractTxReceipt.newBuilder().build();
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  contractTemplate.requester = mockRequester;
  // then
  assertEquals(expected, contractTemplate.getReceipt(anyContractTxHash));
  assertEquals(expected, contractTemplate.getContractTxReceipt(anyTxHash));
}