def METHOD_NAME(counts: List[int],
                                   available_currents: List[float],
                                   missing_currents: List[float],
                                   expected_current: float):
    # setup
    cp = Chargepoint(4, None)
    ev = Ev(0)
    ev.data.control_parameter.required_currents = [16]*3
    ev.data.control_parameter.required_current = 16
    cp.data.set.charging_ev_data = ev
    cp.data.set.target_current = 10
    # evaluation
    current = common.available_current_for_cp(cp, counts, available_currents, missing_currents)
    # assertion
    assert current == expected_current