public function testReverse()
 {
     $user_desc = UserDescRspCommand::constructSuccess(0xab12, UserDescriptor::construct("hello"));
     $frame = $user_desc->getFrame();
     $new_descriptor = new UserDescRspCommand($frame);
     $this->assertEquals($user_desc->displayFrame(), $new_descriptor->displayFrame());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = UserDescSetCommand::construct(0xab12, UserDescriptor::construct("hello"));
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\UserDescSetCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }