public function testReverse()
 {
     $old_zcl = ZCLFrame::construct(ReadAttributesCommand::construct([AttributeIdentifier::construct(0x2)]), 0x4e47, ZCLFrame::DIRECTION_SERVER_TO_CLIENT, ZCLFrame::DEFAULT_RESPONSE_ENABLED, 0x1);
     $old_zcl_frame = $old_zcl->getFrame();
     $new = new ZCLFrame($old_zcl_frame);
     $this->assertEquals($old_zcl_frame, $new->getFrame());
 }
 public function testZCLInclusion()
 {
     $zcl_frame = ZCLFrame::construct(ReadAttributesCommand::construct([]));
     $aps_frame = new APSFrame();
     $aps_frame->setPayloadObject($zcl_frame);
     // The APS payload should be the same as the frame
     $this->assertEquals($zcl_frame->getFrame(), $aps_frame->getPayload());
     $this->assertEquals(APSFrame::FRAME_TYPE_DATA, $aps_frame->getFrameType());
 }