### Question:
LogApiImpl implements LogApi { @Override public List<Log> getLogs(String branchId, long start, long offset) { return branchGroup.getBranch(BranchId.of(branchId)).getContractManager().getLogs(start, offset); } @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 getLogsByRegexJsonRpcTest() { try { LOG_API.getLogs(branchId, "\\W*(Total)\\W*", 0, 100); } catch (Exception e) { log.debug("getLogsTest :: ERR => {}", e.getMessage()); } }
@Ignore @Test public void getLogsByRegexTest() { List<Log> res = logApi.getLogs(branchId, "\\W*(Total)\\W*", 0, 100); assertEquals(1, res.size()); res = logApi.getLogs(branchId, "\\W*(TTotal)\\W*", 0, 100); assertEquals(0, res.size()); }
@Test public void getLogsJsonRpcTest() { try { LOG_API.getLogs(branchId, 0, 9); } catch (Exception e) { log.debug("getLogsTest :: ERR => {}", e.getMessage()); } }