/* Ċ Ġ* ĠThe ĠMIT ĠLicense Ċ Ġ* ĠĊ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 1 4 - ĠHigh - Mob ility ĠGmbH Ġ( https :// high - mob ility . com ) Ċ Ġ* ĠĊ Ġ* ĠPermission Ġis Ġhereby Ġgranted , Ġfree Ġof Ġcharge , Ġto Ġany Ġperson Ġobtaining Ġa Ġcopy Ċ Ġ* Ġof Ġthis Ġsoftware Ġand Ġassociated Ġdocumentation Ġfiles Ġ( the Ġ" Software "), Ġto Ġdeal Ċ Ġ* Ġin Ġthe ĠSoftware Ġwithout Ġrestriction , Ġincluding Ġwithout Ġlimitation Ġthe Ġrights Ċ Ġ* Ġto Ġuse , Ġcopy , Ġmodify , Ġmerge , Ġpublish , Ġdistribute , Ġsublicense , Ġand / or Ġsell Ċ Ġ* Ġcopies Ġof Ġthe ĠSoftware , Ġand Ġto Ġpermit Ġpersons Ġto Ġwhom Ġthe ĠSoftware Ġis Ċ Ġ* Ġfurnished Ġto Ġdo Ġso , Ġsubject Ġto Ġthe Ġfollowing Ġconditions : Ċ Ġ* ĠĊ Ġ* ĠThe Ġabove Ġcopyright Ġnotice Ġand Ġthis Ġpermission Ġnotice Ġshall Ġbe Ġincluded Ġin Ċ Ġ* Ġall Ġcopies Ġor Ġsubstantial Ġportions Ġof Ġthe ĠSoftware . Ċ Ġ* ĠĊ Ġ* ĠTHE ĠSOFTWARE ĠIS ĠPROVIDED Ġ" AS ĠIS ", ĠWITHOUT ĠWARRANTY ĠOF ĠANY ĠKIND , ĠEXPRESS ĠOR Ċ Ġ* ĠIMPLIED , ĠINCLUDING ĠBUT ĠNOT ĠLIMITED ĠTO ĠTHE ĠWARRANTIES ĠOF ĠMERCHANTABILITY , Ċ Ġ* ĠFITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE ĠAND ĠNONINFRINGEMENT . ĠIN ĠNO ĠEVENT ĠSHALL ĠTHE Ċ Ġ* ĠAUTHORS ĠOR ĠCOPYRIGHT ĠHOLDERS ĠBE ĠLIABLE ĠFOR ĠANY ĠCLAIM , ĠDAMAGES ĠOR ĠOTHER Ċ Ġ* ĠLIABILITY , ĠWHETHER ĠIN ĠAN ĠACTION ĠOF ĠCONTRACT , ĠTORT ĠOR ĠOTHERWISE , ĠARISING ĠFROM , Ċ Ġ* ĠOUT ĠOF ĠOR ĠIN ĠCONNECTION ĠWITH ĠTHE ĠSOFTWARE ĠOR ĠTHE ĠUSE ĠOR ĠOTHER ĠDEALINGS ĠIN Ċ Ġ* ĠTHE ĠSOFTWARE . Ċ Ġ*/ Ċ package Ġcom . high mob ility . auto api Ċ Ċ import Ġcom . high mob ility . auto api . property . Property Ċ import Ġcom . high mob ility . auto api . value .* Ċ import Ġcom . high mob ility . auto api . value . measurement .* Ċ import Ġcom . high mob ility . value . Bytes Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ import Ġorg . junit . jupiter . api . Assertions . assertTrue Ċ Ċ class ĠK Tri ps Test Ġ: ĠBaseTest () Ġ{ ĊĠĠĠ Ġval Ġbytes Ġ= ĠBytes ( COMMAND _ HEADER Ġ+ Ġ" 0 0 6 a 0 1 " Ġ+ ĠĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" 0 1 0 0 0 4 0 1 0 0 0 1 0 0 " Ġ+ Ġ Ġ// ĠTrip Ġhad Ġa Ġsingle Ġstop ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" 0 2 0 0 0 E 0 1 0 0 0 B 4 8 6 1 7 2 6 9 2 0 5 3 6 5 6 c 6 4 6 f 6 e " Ġ+ Ġ Ġ// ĠDriver Ġname Ġis Ġ' H ari ĠSel don ' ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" 0 3 0 0 1 4 0 1 0 0 1 1 5 4 6 f 2 0 7 3 6 1 7 6 6 5 2 0 6 8 7 5 6 d 6 1 6 e 6 b 6 9 6 e 6 4 " Ġ+ Ġ Ġ// ĠDescription Ġof Ġthe Ġtrip Ġis Ġ' To Ġsave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 D 0 1 0 0 0 A 1 9 0 2 4 0 3 7 6 6 6 6 6 6 6 6 6 6 6 6 " Ġ+ Ġ Ġ// ĠTotal Ġfuel Ġconsumption Ġduring Ġthe Ġtrip Ġwas Ġ 2 3 . 4 Ġl ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" 1 4 0 0 0 D 0 1 0 0 0 A 1 9 0 2 4 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 " Ġ+ Ġ Ġ// ĠSince Ġthe Ġlast Ġign ition Ġthe Ġvehicle Ġhas Ġconsumed Ġ 2 . 5 Ġl Ġwhile Ġide ling . ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" 1 5 0 0 0 D 0 1 0 0 0 A 1 6 0 1 4 0 5 0 d 3 3 3 3 3 3 3 3 3 3 3 " Ġ// ĠMaximum Ġspeed Ġsince Ġlast Ġign ition Ġon Ġis Ġ 6 7 . 3 km / h ĊĠĠĠ Ġ) ĊĠĠĠĠĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest State () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcommand Ġ= ĠCommand Resolver . resolve ( bytes ) ĊĠĠĠĠĠĠĠ Ġtest State ( command Ġas ĠTri ps . State ) ĊĠĠĠ Ġ} ĊĠĠĠĠĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Builder () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbuilder Ġ= ĠTri ps . State . Builder () ĊĠĠĠĠĠĠĠ Ġbuilder . setType ( Property ( Tri ps . Type . SINGLE )) ĊĠĠĠĠĠĠĠ Ġbuilder . set Driver Name ( Property (" H ari ĠSel don ")) ĊĠĠĠĠĠĠĠ Ġbuilder . setDescription ( Property (" To Ġsave Ġhum ank ind ")) ĊĠĠĠĠĠĠĠ Ġbuilder . set StartTime ( Property ( get Calendar (" 2 0 2 0 - 0 6 - 1 9 T 1 2 : 1 2 : 1 0 . 0 0 0 Z "))) ĊĠĠĠĠĠĠĠ Ġbuilder . set EndTime ( Property ( get Calendar (" 2 0 2 0 - 0 6 - 1 9 T 1 3 : 1 2 : 1 0 . 0 0 0 Z "))) ĊĠĠĠĠĠĠĠ Ġbuilder . set Start Address ( Property (" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 , Ġ 1 0 9 9 7 ĠBer lin , ĠGermany ")) ĊĠĠĠĠĠĠĠ Ġbuilder . set End Address ( Property (" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 , Ġ 1 0 9 9 7 ĠBer lin , ĠGermany ")) ĊĠĠĠĠĠĠĠ Ġbuilder . set Start Coordinates ( Property ( Coordinates ( 5 2 . 5 0 0 2 7 6 , Ġ 1 3 . 4 3 9 7 1 9 ))) ĊĠĠĠĠĠĠĠ Ġbuilder . set End Coordinates ( Property ( Coordinates ( 5 2 . 5 0 0 2 7 6 , Ġ 1 3 . 4 3 9 7 1 9 ))) ĊĠĠĠĠĠĠĠ Ġbuilder . set Start Od ometer ( Property ( Length ( 1 0 5 0 0 . 0 , ĠLength . Unit . KI LO METER S ))) ĊĠĠĠĠĠĠĠ Ġbuilder . set End Od ometer ( Property ( Length ( 1 0 5 4 3 . 0 , ĠLength . Unit . KI LO METER S ))) ĊĠĠĠĠĠĠĠ Ġbuilder . set Average Fuel Consumption ( Property ( Fuel E fficiency ( 7 . 3 4 , ĠF uel E fficiency . Unit . LIT ERS _ PER _ 1 0 0 _ KI LO METER S ))) ĊĠĠĠĠĠĠĠ Ġbuilder . set Distance ( Property ( Length ( 4 3 . 0 , ĠLength . Unit . KI LO METER S ))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . C ITY , Ġ" Ber lin "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . COUNTRY , Ġ" Ger many "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . COUNTRY _ SHORT , Ġ" DE "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . DI STRICT , Ġ" Ber lin "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . POST AL _ CODE , Ġ" 1 0 1 1 7 "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . STRE ET , Ġ" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . STATE _ PROV IN CE , Ġ" Brand en burg "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Start Address Component ( Property ( Address Component ( Address Component . Type . OTHER , Ġ" Ger many "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . C ITY , Ġ" Ber lin "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . COUNTRY , Ġ" Ger many "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . COUNTRY _ SHORT , Ġ" DE "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . DI STRICT , Ġ" Ber lin "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . POST AL _ CODE , Ġ" 1 0 1 1 7 "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . STRE ET , Ġ" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . STATE _ PROV IN CE , Ġ" Brand en burg "))) ĊĠĠĠĠĠĠĠ Ġbuilder . add End Address Component ( Property ( Address Component ( Address Component . Type . OTHER , Ġ" Ger many "))) ĊĠĠĠĠĠĠĠ Ġbuilder . set Event ( Property ( Tri ps . Event . H AR SH _ AC CELER ATION )) ĊĠĠĠĠĠĠĠ Ġbuilder . set E co Level ( Property ( Tri ps . E co Level . HIGH )) ĊĠĠĠĠĠĠĠ Ġbuilder . add Threshold ( Property ( E co D riving Threshold ( E co D riving Threshold . Type . ZERO , Ġ 0 . 0 ))) ĊĠĠĠĠĠĠĠ Ġbuilder . add Threshold ( Property ( E co D riving Threshold ( E co D riving Threshold . Type . ONE , Ġ 0 . 0 ))) ĊĠĠĠĠĠĠĠ Ġbuilder . set Total Fuel Consumption ( Property ( Volume ( 2 3 . 4 , ĠVolume . Unit . LIT ERS ))) ĊĠĠĠĠĠĠĠ Ġbuilder . set Total Idle Fuel Consumption ( Property ( Volume ( 2 . 5 , ĠVolume . Unit . LIT ERS ))) ĊĠĠĠĠĠĠĠ Ġbuilder . setMaximum Speed ( Property ( Speed ( 6 7 . 3 , ĠSpeed . Unit . KI LO METER S _ PER _ HOUR ))) ĊĠĠĠĠĠĠĠ Ġtest State ( builder . build ()) ĊĠĠĠ Ġ} ĊĠĠĠĠĊĠĠĠ Ġprivate Ġfun Ġtest State ( state : ĠTri ps . State ) Ġ{ ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . type . value Ġ== ĠTri ps . Type . SINGLE ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . driver Name . value Ġ== Ġ" H ari ĠSel don ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . description . value Ġ== Ġ" To Ġsave Ġhum ank ind ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( date Is Same ( state . startTime . value , Ġ" 2 0 2 0 - 0 6 - 1 9 T 1 2 : 1 2 : 1 0 . 0 0 0 Z ")) ĊĠĠĠĠĠĠĠ ĠassertTrue ( date Is Same ( state . endTime . value , Ġ" 2 0 2 0 - 0 6 - 1 9 T 1 3 : 1 2 : 1 0 . 0 0 0 Z ")) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address . value Ġ== Ġ" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 , Ġ 1 0 9 9 7 ĠBer lin , ĠGermany ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address . value Ġ== Ġ" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 , Ġ 1 0 9 9 7 ĠBer lin , ĠGermany ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Coordinates . value ?. latitude Ġ== Ġ 5 2 . 5 0 0 2 7 6 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Coordinates . value ?. longitude Ġ== Ġ 1 3 . 4 3 9 7 1 9 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Coordinates . value ?. latitude Ġ== Ġ 5 2 . 5 0 0 2 7 6 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Coordinates . value ?. longitude Ġ== Ġ 1 3 . 4 3 9 7 1 9 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Od ometer . value ?. value Ġ== Ġ 1 0 5 0 0 . 0 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Od ometer . value ?. unit Ġ== ĠLength . Unit . KI LO METER S ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Od ometer . value ?. value Ġ== Ġ 1 0 5 4 3 . 0 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Od ometer . value ?. unit Ġ== ĠLength . Unit . KI LO METER S ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . average Fuel Consumption . value ?. value Ġ== Ġ 7 . 3 4 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . average Fuel Consumption . value ?. unit Ġ== ĠF uel E fficiency . Unit . LIT ERS _ PER _ 1 0 0 _ KI LO METER S ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . distance . value ?. value Ġ== Ġ 4 3 . 0 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . distance . value ?. unit Ġ== ĠLength . Unit . KI LO METER S ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 0 ]. value ?. type Ġ== ĠAddress Component . Type . C ITY ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 0 ]. value ?. value Ġ== Ġ" Ber lin ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 1 ]. value ?. type Ġ== ĠAddress Component . Type . COUNTRY ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 1 ]. value ?. value Ġ== Ġ" Ger many ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 2 ]. value ?. type Ġ== ĠAddress Component . Type . COUNTRY _ SHORT ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 2 ]. value ?. value Ġ== Ġ" DE ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 3 ]. value ?. type Ġ== ĠAddress Component . Type . DI STRICT ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 3 ]. value ?. value Ġ== Ġ" Ber lin ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 4 ]. value ?. type Ġ== ĠAddress Component . Type . POST AL _ CODE ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 4 ]. value ?. value Ġ== Ġ" 1 0 1 1 7 ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 5 ]. value ?. type Ġ== ĠAddress Component . Type . STRE ET ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 5 ]. value ?. value Ġ== Ġ" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 6 ]. value ?. type Ġ== ĠAddress Component . Type . STATE _ PROV IN CE ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 6 ]. value ?. value Ġ== Ġ" Brand en burg ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 7 ]. value ?. type Ġ== ĠAddress Component . Type . OTHER ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . start Address Components [ 7 ]. value ?. value Ġ== Ġ" Ger many ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 0 ]. value ?. type Ġ== ĠAddress Component . Type . C ITY ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 0 ]. value ?. value Ġ== Ġ" Ber lin ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 1 ]. value ?. type Ġ== ĠAddress Component . Type . COUNTRY ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 1 ]. value ?. value Ġ== Ġ" Ger many ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 2 ]. value ?. type Ġ== ĠAddress Component . Type . COUNTRY _ SHORT ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 2 ]. value ?. value Ġ== Ġ" DE ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 3 ]. value ?. type Ġ== ĠAddress Component . Type . DI STRICT ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 3 ]. value ?. value Ġ== Ġ" Ber lin ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 4 ]. value ?. type Ġ== ĠAddress Component . Type . POST AL _ CODE ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 4 ]. value ?. value Ġ== Ġ" 1 0 1 1 7 ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 5 ]. value ?. type Ġ== ĠAddress Component . Type . STRE ET ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 5 ]. value ?. value Ġ== Ġ" Sk al it zer ĠS tra ÃŁ e Ġ 6 8 ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 6 ]. value ?. type Ġ== ĠAddress Component . Type . STATE _ PROV IN CE ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 6 ]. value ?. value Ġ== Ġ" Brand en burg ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 7 ]. value ?. type Ġ== ĠAddress Component . Type . OTHER ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . end Address Components [ 7 ]. value ?. value Ġ== Ġ" Ger many ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . event . value Ġ== ĠTri ps . Event . H AR SH _ AC CELER ATION ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . eco Level . value Ġ== ĠTri ps . E co Level . HIGH ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . threshold s [ 0 ]. value ?. type Ġ== ĠE co D riving Threshold . Type . ZERO ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . threshold s [ 0 ]. value ?. value Ġ== Ġ 0 . 0 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . threshold s [ 1 ]. value ?. type Ġ== ĠE co D riving Threshold . Type . ONE ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . threshold s [ 1 ]. value ?. value Ġ== Ġ 0 . 0 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . total Fuel Consumption . value ?. value Ġ== Ġ 2 3 . 4 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . total Fuel Consumption . value ?. unit Ġ== ĠVolume . Unit . LIT ERS ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . total Idle Fuel Consumption . value ?. value Ġ== Ġ 2 . 5 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . total Idle Fuel Consumption . value ?. unit Ġ== ĠVolume . Unit . LIT ERS ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . maximum Speed . value ?. value Ġ== Ġ 6 7 . 3 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( state . maximum Speed . value ?. unit Ġ== ĠSpeed . Unit . KI LO METER S _ PER _ HOUR ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( bytes The Same ( state , Ġbytes )) ĊĠĠĠ Ġ} Ċ }