public function testToArray()
{
$device = new Device();
$this->assertEquals([], $device->toArray());
$device->setIdentification(['manufacturer' => 'Sony', 'model' => 'Playstation 4', 'type' => Constants\DeviceType::GAMING, 'subtype' => Constants\DeviceSubType::CONSOLE]);
$this->assertEquals(['manufacturer' => 'Sony', 'model' => 'Playstation 4', 'type' => Constants\DeviceType::GAMING, 'subtype' => Constants\DeviceSubType::CONSOLE], $device->toArray());
$device->setIdentification(['manufacturer' => 'NEC', 'model' => 'N2002', 'carrier' => 'DoCoMo', 'type' => Constants\DeviceType::MOBILE, 'subtype' => Constants\DeviceSubType::FEATURE]);
$this->assertEquals(['manufacturer' => 'NEC', 'model' => 'N2002', 'carrier' => 'DoCoMo', 'type' => Constants\DeviceType::MOBILE, 'subtype' => Constants\DeviceSubType::FEATURE], $device->toArray());
}