### Question:
RedisMsInstFileService implements IMsInstFileService { @Override public byte[] getInstanceFile(long instId) { String dataPath = getDataPath(instId, null); JSONObject jsonObject = fileDataMetaOperations.get(dataPath); if (jsonObject == null) { return null; } String jarVersion = jsonObject.getString("jarVersion"); dataPath = getDataPath(instId, jarVersion); String finalDataPath = dataPath; byte[] bytes = redisTemplate.execute(new RedisCallback<byte[]>() { @Override public byte[] doInRedis(RedisConnection connection) throws DataAccessException { return connection.get(keySerializer.serialize(finalDataPath)); } }); return bytes; } RedisMsInstFileService(Boolean prePublish); @PostConstruct void init(); @Override byte[] getInstanceFile(long instId); @Override Boolean saveInstanceFile(TacInst tacInst, byte[] data);  }### Answer:
@Test public void getInstanceFile() { byte[] instanceFile = redisMsInstFileService.getInstanceFile(tacInst.getId()); assertNotNull(instanceFile); }