def METHOD_NAME(
    self,
    early_termination_name: Optional[EarlyTerminationPolicyType],
    sampling_algorithm_name: SamplingAlgorithmType,
) -> None:
    expected_nlp_sweep_settings_obj = self._get_entity_obj(early_termination_name, sampling_algorithm_name)
    rest_sweep_settings_obj = expected_nlp_sweep_settings_obj._to_rest_object()
    round_trip_nlp_sweep_settings_obj = NlpSweepSettings._from_rest_object(rest_sweep_settings_obj)
    assert (
        round_trip_nlp_sweep_settings_obj == expected_nlp_sweep_settings_obj
    ), f"expected: {expected_nlp_sweep_settings_obj}, actual: {round_trip_nlp_sweep_settings_obj}"