### Question:
LogIndexer { public Log getLog(long logIndex) { if (logIndex < 0 || logIndex > curIndex()) { return Log.createBy(logIndex, "", "Log not exists"); } String val = get(logIndex); int separator = val.indexOf(keySeparator); String txId = val.substring(0, separator); int indexOfReceipt = Integer.parseInt(val.substring(separator + 1)); String log = receiptStore.get(txId).getLog().get(indexOfReceipt); return Log.createBy(logIndex, txId, log); } LogIndexer(LogStore logStore, ReceiptStore receiptStore); void put(String txId, int size); String get(long logIndex); Log getLog(long logIndex); List<Log> getLogs(long from, long offset); long curIndex(); boolean contains(long logIndex); void close();  }### Answer:
@Test public void getLogTest() { for (int i = 0; i < 100; i++) { assertEquals(String.format(logFormat, i % 10), logIndexer.getLog(i).getMsg()); } }