def METHOD_NAME(factory):
    a = factory.create(UML.Property)
    a.association = factory.create(UML.Association)
    parse(a, "myattr[1]")
    add_tag_is_foo_metadata_field(a, factory)
    assert ("+ myattr", '1 { tag = "foo" }') == format_association_end(a)