def METHOD_NAME(fault_state: FaultStateLevel,
                                  expected_loadmanagement_available: bool,
                                  monkeypatch,
                                  data_):
    # setup
    connected_cps_mock = Mock(return_value=["cp3", "cp4"])
    monkeypatch.setattr(data.data.counter_all_data, "get_chargepoints_of_counter", connected_cps_mock)
    counter = Counter(0)
    counter.data.get.fault_state = fault_state
    counter.data.set.error_counter = 2
    # execution
    counter._set_loadmanagement_state()
    # evaluation
    assert data.data.cp_data["cp3"].data.set.loadmanagement_available == expected_loadmanagement_available
    assert data.data.cp_data["cp4"].data.set.loadmanagement_available == expected_loadmanagement_available