### Question:
LogApiImpl implements LogApi { @Override public long curIndex(String branchId) { try { return branchGroup.getBranch(BranchId.of(branchId)).getContractManager().getCurLogIndex(); } catch (NullPointerException ne){ log.debug("CurIndex Exception: {}", BRANCH_NOT_FOUND); return 0; } catch (Exception e) { log.debug("CurIndex Exception : {}", e.getMessage()); return 0; } } @Autowired  LogApiImpl(BranchGroup branchGroup); @Override Log getLog(String branchId, long index); @Override List<Log> getLogs(String branchId, long start, long offset); @Override List<Log> getLogs(String branchId, String regex, long start, long offset); @Override long curIndex(String branchId);  }### Answer:
@Test public void curIndexJsonRpcTest() { try { long res = LOG_API.curIndex(branchId); } catch (Exception e) { log.debug("curIndexTest :: ERR => {}", e.getMessage()); } }