def METHOD_NAME(remote_command_executor, dcv_authenticator_port, params, expected_message):
    try:
        assert_that(
            remote_command_executor.run_remote_command(
                f"curl -s -k -X GET -G {SERVER_URL}:{dcv_authenticator_port} {params}"
            ).stdout
        ).contains(expected_message)
    except RemoteCommandExecutionError as e:
        logging.info(f"Exception: {e}")
        assert_that(e.result.stdout).contains(expected_message)