@Test
public void testGetChainIdHash() throws Exception {

  // given
  final BlockchainTemplate blockchainTemplate = new BlockchainTemplate(contextStorage);
  final Requester mockRequester = mock(Requester.class);
  final ChainIdHash expected = ChainIdHash.of(BytesValue.EMPTY);
  final BlockchainStatus blockchainStatus = BlockchainStatus.newBuilder()
      .chainIdHash(expected)
      .build();
  when(mockRequester.request(ArgumentMatchers.<Invocation<?>>any()))
      .thenReturn(blockchainStatus);
  blockchainTemplate.requester = mockRequester;
  // then
  final ChainIdHash actual = blockchainTemplate.getChainIdHash();
  assertEquals(expected, actual);
}