def METHOD_NAME(element_factory, modeling_language, create):
    state_item = create(StateItem, UML.State)
    state_item.subject.entry = element_factory.create(UML.Activity)
    state_item.subject.doActivity = element_factory.create(UML.Activity)
    current = ElementFactory()
    all(compare(current, current, element_factory))
    tree = list(organize_changes(current, modeling_language))
    assert len(tree) == 1
    assert {e.id for e in current.select(PendingChange)} == set(all_change_ids(tree))