@Test
public void testGetTxReceipt() {

  // given
  final TransactionOperation mockOperation = mock(TransactionOperation.class);
  when(mockOperation.getTxReceipt(any(TxHash.class)))
      .thenReturn(TxReceipt.newBuilder().build());
  final AergoClient mockClient = mock(AergoClient.class);
  when(mockClient.getTransactionOperation()).thenReturn(mockOperation);
  final ClientProvider mockClientProvider = mock(ClientProvider.class);
  when(mockClientProvider.getClient()).thenReturn(mockClient);
  // then
  final QueryApi queryApi = new QueryApiImpl(mockClientProvider);
  final TxReceipt txReceipt = queryApi.getTxReceipt(anyTxHash);
  assertNotNull(txReceipt);
}