### Question:
InitializationApiController implements InitializationApi { @Override @PreAuthorize("isAuthenticated()") public ResponseEntity<InitializationStatus> getInitializationStatus() { InitializationStatusDto initializationStatusDto = initializationService.getSecurityServerInitializationStatus(); InitializationStatus initializationStatus = new InitializationStatus(); initializationStatus.setIsAnchorImported(initializationStatusDto.isAnchorImported()); initializationStatus.setIsServerCodeInitialized(initializationStatusDto.isServerCodeInitialized()); initializationStatus.setIsServerOwnerInitialized(initializationStatusDto.isServerOwnerInitialized()); initializationStatus.setSoftwareTokenInitStatus(TokenInitStatusMapping .map(initializationStatusDto.getSoftwareTokenInitStatusInfo()).get()); return new ResponseEntity<>(initializationStatus, HttpStatus.OK); } @Autowired  InitializationApiController(InitializationService initializationService); @Override @PreAuthorize("isAuthenticated()") ResponseEntity<InitializationStatus> getInitializationStatus(); @Override @PreAuthorize("hasAuthority('INIT_CONFIG')") @AuditEventMethod(event = INIT_SERVER_CONFIGURATION) synchronized ResponseEntity<Void> initSecurityServer(InitialServerConf initialServerConf);  }### Answer:
@Test @WithMockUser public void initStatus() { when(initializationService.getSecurityServerInitializationStatus()).thenReturn(new InitializationStatusDto()); initializationApiController.getInitializationStatus(); verify(initializationService).getSecurityServerInitializationStatus(); }