def METHOD_NAME(self, mock_copy_group_attributes):
    source = ClassFactory.create()
    target = source.clone()
    target.container = Tag.REDEFINE
    first_attr = AttrFactory.create()
    second_attr = AttrFactory.create(name=source.name)
    target.attrs.extend((first_attr, second_attr))
    self.validator.merge_redefined_type(source, target)
    mock_copy_group_attributes.assert_called_once_with(source, target, second_attr)