def METHOD_NAME(tags_to_apply, get_configuration, configure_environment, restart_syscheckd,
                                          wait_for_fim_start):
    '''
    description: Check if the 'wazuh-syscheckd' daemon detects events from existing files in a new target
                 of a monitored symlink. For this purpose, the test will create a 'symbolic link' to a
                 file/directory. Then, it will change the target to a non-empty directory, checking that
                 no FIM events are triggered for the files already in the directory. Finally, the test
                 will make file operatons and verify that FIM events are generated.
    wazuh_min_version: 4.2.0
    tier: 1
    parameters:
        - tags_to_apply:
            type: set
            brief: Run test if matches with a configuration identifier, skip otherwise.
        - get_configuration:
            type: fixture
            brief: Get configurations from the module.
        - configure_environment:
            type: fixture
            brief: Configure a custom environment for testing.
        - restart_syscheckd:
            type: fixture
            brief: Clear the 'ossec.log' file and start a new monitor.
        - wait_for_fim_start:
            type: fixture
            brief: Wait for realtime start, whodata start, or end of initial FIM scan.
    assertions:
        - Verify that no FIM events are generated for existing files when a 'symbolic link'
          is changed to a non-empty directory.
    input_description: A test case (symlink_and_dir) is contained in external YAML file (wazuh_conf.yaml)
                       which includes configuration settings for the 'wazuh-syscheckd' daemon and, these
                       are combined with the testing directories to be monitored defined in the module.
    expected_output:
        - r'.*Sending FIM event: (.+)$' ('added' events)
    tags:
        - scheduled
        - time_travel
    '''
    check_apply_test(tags_to_apply, get_configuration['tags'])
    scheduled = get_configuration['metadata']['fim_mode'] == 'scheduled'
    whodata = get_configuration['metadata']['fim_mode'] == 'whodata'
    # Modify the symbolic link and expect no events
    modify_symlink(testdir_target, testdir_link)
    # Wait for both audit and the symlink check to run
    wait_for_symlink_check(wazuh_log_monitor)
    fim.wait_for_audit(whodata, wazuh_log_monitor)
    fim.check_time_travel(scheduled, monitor=wazuh_log_monitor)
    with pytest.raises(TimeoutError):
        event = wazuh_log_monitor.start(timeout=global_parameters.default_timeout, callback=fim.callback_detect_event)
        logger.error(f'Unexpected event {event.result()}')
        raise AttributeError(f'Unexpected event {event.result()}')
    # Create a file in the pointed folder and expect events
    fim.create_file(fim.REGULAR, testdir_link, 'regular2')
    fim.check_time_travel(scheduled, monitor=wazuh_log_monitor)
    wazuh_log_monitor.start(timeout=global_parameters.default_timeout, callback=fim.callback_detect_event,
                            error_message='Did not receive expected '
                                          '"Sending FIM event: ..." event')