def METHOD_NAME(case, create):
    """Test if stereotype attribute information is added when slot is added."""
    c = create(ComponentItem, UML.Component)
    c.show_stereotypes = True
    instance_spec = UML.recipes.apply_stereotype(c.subject, case.st1)
    # test precondition
    assert not compartments(c)
    slot = UML.recipes.add_slot(instance_spec, case.st1.ownedAttribute[0])
    slot.value = "foo"
    assert len(compartments(c)) == 1