def METHOD_NAME(self, cognite_client, mock_fit):
    entities_from = [TimeSeries(id=1, name="x", metadata={"ka": "va"})]
    entities_to = [Asset(id=1, external_id="abc", name="x")]
    cognite_client.entity_matching.fit(
        sources=entities_from, targets=entities_to, true_matches=[(1, "abc")], feature_type="bigram"
    )
    assert {
        "sources": [{"id": 1, "name": "x", "metadata.ka": "va"}],
        "targets": [entities_to[0].dump(camel_case=True)],
        "trueMatches": [{"sourceId": 1, "targetExternalId": "abc"}],
        "featureType": "bigram",
        "ignoreMissingFields": False,
        "matchFields": None,
        "name": None,
        "description": None,
        "externalId": None,
        "classifier": None,
    } == jsgz_load(mock_fit.calls[0].request.body)