The Eon device interacts with the MQTT server in a session.
The session state management is well described in the techref. PDF.
This session state management can be implemented via a state machine.
Or if the state machine is 'simple' we can choose to implement is via simple binary logic.
Diff:
We should build a mock state machine as starters for our test.
Use CfUnit for any unit/functional testing of the state machine
As far as I see this ticket is implemented.
However it should still be tested.