'Test the initializer when json and other named parameters are both
provided. The named parameters should override top level keys in the
json dict.'

def test_init_with_merging(self):

    override_new_cluster = {'workers': 999}
    json = {'new_cluster': NEW_CLUSTER, 'notebook_task': NOTEBOOK_TASK}
    op = DatabricksSubmitRunOperator(task_id=TASK_ID, json=json, new_cluster=override_new_cluster)
    expected = op._deep_string_coerce({'new_cluster': override_new_cluster, 'notebook_task': NOTEBOOK_TASK, 'run_name': TASK_ID})
    self.assertDictEqual(expected, op.json)
