def METHOD_NAME(gk8s_config, monkeypatch):
    monkeypatch.setattr(
        "kubernetes.client.CoreV1Api.read_namespaced_config_map",
        lambda cls, n, ns: KubeResult(data={"foo": "bar"})
    )
    gk8s_config._prepare_configmap()
    assert gk8s_config.name_exists is True