def METHOD_NAME():
    """test activity creation and used and execute methods"""
    a = Activity(name="Fuzz", description="hipster beard dataset")
    a.used(
        {
            "id": "syn101",
            "versionNumber": 42,
            "concreteType": "org.sagebionetworks.repo.model.FileEntity",
        }
    )
    a.executed("syn102", targetVersion=1)
    usedEntities = a["used"]
    len(usedEntities), 2
    assert a["name"] == "Fuzz"
    assert a["description"] == "hipster beard dataset"
    used_syn101 = utils._find_used(
        a, lambda res: res["reference"]["targetId"] == "syn101"
    )
    assert used_syn101["reference"]["targetVersionNumber"] == 42
    assert not used_syn101["wasExecuted"]
    used_syn102 = utils._find_used(
        a, lambda res: res["reference"]["targetId"] == "syn102"
    )
    assert used_syn102["reference"]["targetVersionNumber"] == 1
    assert used_syn102["wasExecuted"]