@Test
public void testListPeerMetrics() throws Exception {

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