public void run() {

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

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

        // Verify that there are no errors in the notification
        assertFalse(registerWorker.getNotification().hasErrors());
    }