@Test
public void testGetStakeInfo() {

  // given
  final AccountOperation mockOperation = mock(AccountOperation.class);
  when(mockOperation.getStakeInfo(any(AccountAddress.class)))
      .thenReturn(StakeInfo.newBuilder().build());
  final AergoClient mockClient = mock(AergoClient.class);
  when(mockClient.getAccountOperation()).thenReturn(mockOperation);
  final ClientProvider mockClientProvider = mock(ClientProvider.class);
  when(mockClientProvider.getClient()).thenReturn(mockClient);
  // then
  final QueryApi queryApi = new QueryApiImpl(mockClientProvider);
  assertNotNull(queryApi.getStakingInfo(anyAccountAddress));
  assertNotNull(queryApi.getStakeInfo(anyAccountAddress));
}