async def METHOD_NAME(value, value_type, expected):
    """Test group_value_write."""
    xknx = XKNX()
    group_address = "1/2/3"
    write = Telegram(
        destination_address=GroupAddress(group_address),
        payload=apci.GroupValueWrite(expected),
    )
    await group_value_write(xknx, "1/2/3", value, value_type=value_type)
    assert xknx.telegrams.qsize() == 1
    assert xknx.telegrams.get_nowait() == write