def METHOD_NAME(self):
    """Test to_knx function with normal operation."""
    xknx = XKNX()
    remote_value = RemoteValueSwitch(xknx, invert=True)
    assert remote_value.to_knx(True) == DPTBinary(0)
    assert remote_value.to_knx(False) == DPTBinary(1)