### Question:
BranchApiImpl implements BranchApi { @Override public Map<String, BranchDto> getBranches() { Map<String, BranchDto> branchMap = new HashMap<>(); branchGroup.getAllBranch().forEach(blockChain -> branchMap.put(blockChain.getBranchId().toString(), BranchDto.of(blockChain.getBranch().getJson()))); return branchMap; } @Autowired  BranchApiImpl(BranchGroup branchGroup); @Override Map<String, BranchDto> getBranches(); @Override Set<String> getValidators(String branchId);  }### Answer:
@Test public void getBranchesTest() { try { assertThat(BRANCH_API.getBranches()).isNotNull(); } catch (Exception exception) { log.debug("getBranchesTest :: exception : " + exception); } }