### Question:
InvoiceServiceImpl implements InvoiceService { @Override public CommonResult list() { HashMap<Byte, String> statusMap = new HashMap<>(); JSONArray result = new JSONArray(); statusMap.put((byte) 1, "未使用"); statusMap.put((byte) 2, "使用中"); statusMap.put((byte) 3, "已使用"); List<Invoice> temp = invoiceMapper.list(); for (Invoice item: temp) { JSONObject res = new JSONObject(); res.put("id", item.getId()); res.put("status", statusMap.get(item.getStatus())); result.add(res); } return CommonResult.success(result); }  @Override synchronized CommonResult getNextInvoiceCode(); @Override CommonResult updateStatus(Byte status, String invoiceCode); @Override CommonResult insertInvoices(String beginInvoiceCode, String endInvoiceCode); @Override CommonResult getInvoiceInfo(); @Override CommonResult list();  }### Answer:
@Test public void testList() throws Exception { }