### Question:
BlockApiImpl implements BlockApi { @Override public BlockDto getBlockByNumber(String branchId, long numOfBlock, Boolean bool) { ConsensusBlock block = branchGroup.getBlockByIndex(BranchId.of(branchId), numOfBlock); 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 getBlockByNumberTest() { try { assertThat(BLOCK_API.getBlockByNumber(branchId, 0, true)).isNotNull(); } catch (Exception exception) { log.debug("getBlockByNumberTest :: exception : " + exception); } }