@Test
public void testGetChainInfo() throws Exception {

  // given
  final BlockchainTemplate blockchainTemplate = new BlockchainTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final ChainInfo expected = ChainInfo.newBuilder().build();
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(expected);
  blockchainTemplate.requester = mockRequester;
  // then
  final ChainInfo actual = blockchainTemplate.getChainInfo();
  assertEquals(expected, actual);
}