### Question:
BlockApiImpl implements BlockApi { @Override public BlockDto getBlockByHash(String branchId, String blockId, Boolean bool) { ConsensusBlock block = branchGroup.getBlockByHash(BranchId.of(branchId), blockId); return BlockDto.createBy(block); } @Autowired  BlockApiImpl(BranchGroup branchGroup); @Override long blockNumber(String branchId); @Override BlockDto getBlockByHash(String branchId, String blockId, Boolean bool); @Override BlockDto getBlockByNumber(String branchId, long numOfBlock, Boolean bool); @Override BlockDto getLastBlock(String branchId);  }### Answer:
@Test public void getBlockByHashTest() { try { assertThat(BLOCK_API.getBlockByHash(branchId, "ad7dd0552336ebf3b2f4f648c4a87d7c35ed74382219e2954047ad9138a247c5", true)).isNotNull(); } catch (Exception exception) { log.debug("getBlockByHashTest :: exception : " + exception); } }