public static DeviceDescription descriptionOf(Device device) {
   checkNotNull(device, "Must supply non-null Device");
   return new DefaultDeviceDescription(
       device.id().uri(), device.type(),
       device.manufacturer(), device.hwVersion(),
       device.swVersion(), device.serialNumber(),
       device.chassisId(), (SparseAnnotations) device.annotations());
 }
 private static void assertDevice(DeviceId id, String swVersion, Device device) {
   assertNotNull(device);
   assertEquals(id, device.id());
   assertEquals(MFR, device.manufacturer());
   assertEquals(HW, device.hwVersion());
   assertEquals(swVersion, device.swVersion());
   assertEquals(SN, device.serialNumber());
 }