def METHOD_NAME(finished, aborted=False):
    mock_metrics = Mock(DsortMetrics)
    mock_metrics.aborted = aborted
    mock_metrics.shard_creation = Mock(finished=finished)
    mock_job_info = Mock(JobInfo)
    mock_job_info.metrics = mock_metrics
    return mock_job_info