def METHOD_NAME(self, role_exists_patch,
                            instance_profile_exists_patch,
                            create_role_patch,
                            get_role_policy_patch):
    role_exists_patch.side_effect = self.toggle_for_check_if_exists
    instance_profile_exists_patch.return_value = True
    create_role_patch.return_value = self.CREATE_DATAPIPELINE_ROLE_RESULT
    get_role_policy_patch.return_value = self.DATAPIPELINE_ROLE_POLICY
    result = self.run_cmd(self.prefix, 0)
    expected_output = json.dumps(self.CONSTRUCTED_RESULT_OUTPUT,
                                 indent=4) + '\n'
    self.assertEqual(result[0], expected_output)