### Question:
SystemSettingController { @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/datapersistenttime/{time}", method = RequestMethod.PUT) public void updateExpiredTimeRange(@PathVariable("time") Long time) { if(time < FlowgateConstant.DEFAULTEXPIREDTIMERANGE) { throw new WormholeRequestException("Expired time range must more than 90 days."); } template.opsForValue().set(EventMessageUtil.EXPIREDTIMERANGE, String.valueOf(time)); }  @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/datapersistenttime", method = RequestMethod.GET) Long getExpiredTimeRange(); @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/datapersistenttime/{time}", method = RequestMethod.PUT) void updateExpiredTimeRange(@PathVariable("time") Long time);  }### Answer:
@Test public void updateExpiredTimeRangeTest() throws Exception{ ValueOperations<String, String> valueOperations = Mockito.mock(ValueOperations.class); Mockito.doReturn(valueOperations).when(template).opsForValue(); this.mockMvc.perform(put("/v1/setting/datapersistenttime/89000000000")) .andExpect(status().isOk()).andDo(document("SystemSetting-updateExpiredTimeRange-example")) .andReturn(); }