def METHOD_NAME(self, get_rp_patch,
                                 role_exists_patch,
                                 instance_profile_exists_patch,
                                 construct_result_patch):
    get_rp_patch.return_value = False
    instance_profile_exists_patch.return_value = False
    role_exists_patch.return_value = False
    construct_result_patch.return_value = []
    self.run_cmd(self.prefix, expected_rc=0)
    self.assertEqual(len(self.operations_called), 6)
    self.assertEqual(self.operations_called[0][0].name, 'CreateRole')
    self.assertEqual(self.operations_called[0][1]['RoleName'],
                     DATAPIPELINE_DEFAULT_SERVICE_ROLE_NAME)
    self.assertEqual(
        self.operations_called[0][1]['AssumeRolePolicyDocument'],
        dict_to_string(DATAPIPELINE_DEFAULT_SERVICE_ROLE_ASSUME_POLICY))
    self.assertEqual(self.operations_called[1][0].name,
                     'AttachRolePolicy')
    self.assertEqual(self.operations_called[1][1]['PolicyArn'],
                     (createdefaultroles.
                      DATAPIPELINE_DEFAULT_SERVICE_ROLE_ARN))
    self.assertEqual(self.operations_called[1][1]['RoleName'],
                     DATAPIPELINE_DEFAULT_SERVICE_ROLE_NAME)
    self.assertEqual(self.operations_called[2][0].name, 'CreateRole')
    self.assertEqual(self.operations_called[2][1]['RoleName'],
                     DATAPIPELINE_DEFAULT_RESOURCE_ROLE_NAME)
    self.assertEqual(
        self.operations_called[2][1]['AssumeRolePolicyDocument'],
        dict_to_string(DATAPIPELINE_DEFAULT_RESOURCE_ROLE_ASSUME_POLICY))
    self.assertEqual(self.operations_called[3][0].name, 'AttachRolePolicy')
    self.assertEqual(self.operations_called[3][1]['PolicyArn'],
                     (createdefaultroles.
                      DATAPIPELINE_DEFAULT_RESOURCE_ROLE_ARN))
    self.assertEqual(self.operations_called[3][1]['RoleName'],
                     DATAPIPELINE_DEFAULT_RESOURCE_ROLE_NAME)
    self.assertEqual(self.operations_called[4][0].name,
                     'CreateInstanceProfile')
    self.assertEqual(self.operations_called[4][1]['InstanceProfileName'],
                     DATAPIPELINE_DEFAULT_RESOURCE_ROLE_NAME)
    self.assertEqual(self.operations_called[5][0].name,
                     'AddRoleToInstanceProfile')
    self.assertEqual(self.operations_called[5][1]['InstanceProfileName'],
                     DATAPIPELINE_DEFAULT_RESOURCE_ROLE_NAME)
    self.assertEqual(self.operations_called[5][1]['RoleName'],
                     DATAPIPELINE_DEFAULT_RESOURCE_ROLE_NAME)