### Question:
TransactionRetStore extends TronStoreWithRevoking<TransactionRetCapsule> { @Override public void put(byte[] key, TransactionRetCapsule item) { if (BooleanUtils.toBoolean(Args.getInstance().getStorage().getTransactionHistoreSwitch())) { super.put(key, item); } } @Autowired  TransactionRetStore(@Value("transactionRetStore") String dbName); @Override void put(byte[] key, TransactionRetCapsule item); TransactionInfoCapsule getTransactionInfo(byte[] key); TransactionRetCapsule getTransactionInfoByBlockNum(byte[] key);  }### Answer:
@Test public void put() { TransactionInfoCapsule transactionInfoCapsule = new TransactionInfoCapsule(); transactionInfoCapsule.setId(transactionId); transactionInfoCapsule.setFee(1000L); transactionInfoCapsule.setBlockNumber(100L); transactionInfoCapsule.setBlockTimeStamp(200L); TransactionRetCapsule transactionRetCapsule = new TransactionRetCapsule(); transactionRetCapsule.addTransactionInfo(transactionInfoCapsule.getInstance()); Assert.assertNull("put transaction info error", transactionRetStore.getUnchecked(transactionInfoCapsule.getId())); transactionRetStore.put(transactionInfoCapsule.getId(), transactionRetCapsule); Assert.assertNotNull("get transaction info error", transactionRetStore.getUnchecked(transactionInfoCapsule.getId())); }