public void run() {

    validate();
    if (!super.getNotification().hasErrors()) {
      LOGGER.info("Register worker in backend system");
    }
  }
@Test
    void runWithMissingOccupation() {
        RegisterWorkerDto workerDto = createValidWorkerDto();
        workerDto.setupWorkerDto("name", null, LocalDate.of(2000, 12, 1));
        RegisterWorker registerWorker = new RegisterWorker(workerDto);

        // Run the registration process
        registerWorker.run();

        // Verify that the notification contains the missing occupation error
        assertTrue(registerWorker.getNotification().hasErrors());
        assertTrue(registerWorker.getNotification().getErrors().contains(RegisterWorkerDto.MISSING_OCCUPATION));
        assertEquals(registerWorker.getNotification().getErrors().size(), 1);
    }