def METHOD_NAME(soma_object):
    uri = soma_object.uri
    with soma_object:
        soma_object.metadata["content"] = "content"
    with _factory.open(uri, "w") as second_write:
        second_write.metadata["content"] = "confidence"
        second_write.metadata["content"] = "doubt"
    with _factory.open(uri, "r") as reader:
        assert non_soma_metadata(reader) == {"content": "doubt"}