def METHOD_NAME(
    self,
    early_termination_name: Optional[EarlyTerminationPolicyType],
    sampling_algorithm_name: SamplingAlgorithmType,
) -> None:
    image_sweep_settings_obj = self._get_entity_obj(early_termination_name, sampling_algorithm_name)
    expected_image_sweep_settings_rest = self._get_rest_obj(early_termination_name, sampling_algorithm_name)
    image_sweep_settings_rest = image_sweep_settings_obj._to_rest_object()
    assert (
        image_sweep_settings_rest == expected_image_sweep_settings_rest
    ), f"actual: {image_sweep_settings_rest}, expected: {expected_image_sweep_settings_rest}"