### Question:
RedisMsInstService implements IMsInstService { @Override public TacInst createTacMsInst(TacInst tacInst) { checkInst(tacInst); long msInstId = sequenceCounter.incrementAndGet(); if (msInstId <= 0) { throw new IllegalStateException("error on get id "); } tacInst.setId(msInstId); hashOperations.putIfAbsent(getMainKey(), String.valueOf(tacInst.getId()), tacInst); hashOperations.put(getMainKey() + tacInst.getMsCode(), String.valueOf(tacInst.getId()), tacInst); return tacInst; }  @Override List<TacInst> getAllTacMsInsts(); @Override TacInst getTacMsInst(Long msInstId); @Override TacInst createTacMsInst(TacInst tacInst); @Override Boolean updateTacMsInst(Long instId, TacInst tacInst); @Override Boolean removeMsInst(Long instId); @Override List<TacInst> getMsInsts(String code);  }### Answer:
@Test public void createTacMsInst() { TacInst tacMsInst = redisMsInstService.createTacMsInst(tacInst); assertTrue(tacMsInst.getId() > 0); }