### Question:
PageSettingsController { @RestAccessControl(permission = Permission.MANAGE_PAGES) @RequestMapping(value = "/pageSettings", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<SimpleRestResponse<PageSettingsDto>> getPageSettings() { PageSettingsDto pageSettings = this.getPageSettingsService().getPageSettings(); return new ResponseEntity<>(new SimpleRestResponse<>(pageSettings), HttpStatus.OK); }  IPageSettingsService getPageSettingsService(); void setPageSettingsService(IPageSettingsService pageSettingsService); @RestAccessControl(permission = Permission.MANAGE_PAGES) @RequestMapping(value = "/pageSettings", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) ResponseEntity<SimpleRestResponse<PageSettingsDto>> getPageSettings(); @RestAccessControl(permission = Permission.MANAGE_PAGES) @RequestMapping(value = "/pageSettings", method = RequestMethod.PUT, produces = MediaType.APPLICATION_JSON_VALUE) ResponseEntity<SimpleRestResponse<PageSettingsDto>> updatePageSettings(@RequestBody PageSettingsRequest request);  }### Answer:
@Test public void should_load_the_list_of_settings() throws Exception { UserDetails user = createManagePagesUser(); String accessToken = mockOAuthInterceptor(user); when(pageSettingsService.getPageSettings()).thenReturn(createMockDto()); ResultActions result = mockMvc.perform( get("/pageSettings") .header("Authorization", "Bearer " + accessToken) ); result.andExpect(status().isOk()); }