package Ġcom . the j hol mes . rus sound Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġcom . the j hol mes . rus sound . util . to Hex ByteArray Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ Ċ class ĠR us sound Commands UnitTest Ġ{ ĊĠ Ġlateinit Ġvar Ġr us sound Commands : ĠR us sound Commands ĊĠ Ġlateinit Ġvar Ġzone 1 : ĠZone ĊĠ Ġlateinit Ġvar Ġzone 2 : ĠZone ĊĠ Ġlateinit Ġvar Ġsource 0 : ĠSource ĊĠ Ġlateinit Ġvar Ġsource 1 : ĠSource ĊĊĠ Ġ@ Before Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġzone 1 Ġ= ĠZone ( 0 , Ġ 0 ) ĊĠĠĠ Ġzone 2 Ġ= ĠZone ( 0 , Ġ 1 ) ĊĠĠĠ Ġsource 0 Ġ= ĠSource ( 0 , Ġ 0 ) ĊĠĠĠ Ġsource 1 Ġ= ĠSource ( 0 , Ġ 1 ) ĊĠĠĠ Ġr us sound Commands Ġ= ĠR us sound Commands () ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 1 Get Status () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 1 0 4 0 2 0 0 0 0 0 7 0 0 0 0 7 CF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . request Status ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 2 Get Status () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 1 0 4 0 2 0 0 0 1 0 7 0 0 0 0 7 DF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . request Status ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 1 Power On () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 3 0 0 0 1 0 0 0 0 0 0 0 1 1 2 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . turn On ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 2 Power On () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 3 0 0 0 1 0 0 0 1 0 0 0 1 1 3 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . turn On ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 1 Power Off () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 3 0 0 0 0 0 0 0 0 0 0 0 1 1 1 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . turn Off ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 2 Power Off () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 3 0 0 0 0 0 0 0 1 0 0 0 1 1 2 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . turn Off ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 1 Volume Up () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 7 F 0 0 0 0 0 0 0 0 0 0 0 1 7 BF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume Up ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 2 Volume Up () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 1 7 0 0 5 0 2 0 2 0 0 0 0 7 F 0 0 0 0 0 0 0 0 0 0 0 1 7 CF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume Up ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 1 Volume Down () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 7 F 0 0 0 0 0 0 0 0 0 0 0 1 6 DF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume Down ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 2 Volume Down () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 1 7 0 0 5 0 2 0 2 0 0 0 0 F 1 7 F 0 0 0 0 0 0 0 0 0 0 0 1 6 EF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume Down ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 1 Volume Set () Ġ{ ĊĠĠĠ Ġvar Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 0 0 0 0 0 0 0 0 0 1 0 FF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 1 , Ġ 0 )). isEqualTo ( expected ) ĊĊĠĠĠ Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 0 B 0 0 0 0 0 0 0 1 1 AF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 1 , Ġ 2 2 )). isEqualTo ( expected ) ĊĊĠĠĠ Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 1 4 0 0 0 0 0 0 0 1 2 3 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 1 , Ġ 4 0 )). isEqualTo ( expected ) ĊĊĠĠĠ Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 3 2 0 0 0 0 0 0 0 1 4 1 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 1 , Ġ 1 0 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Zone 2 Volume St () Ġ{ ĊĠĠĠ Ġvar Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 0 0 0 0 0 1 0 0 0 1 1 0 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 2 , Ġ 0 )). isEqualTo ( expected ) ĊĊĠĠĠ Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 0 B 0 0 0 1 0 0 0 1 1 BF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 2 , Ġ 2 2 )). isEqualTo ( expected ) ĊĊĠĠĠ Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 1 4 0 0 0 1 0 0 0 1 2 4 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 2 , Ġ 4 0 )). isEqualTo ( expected ) ĊĊĠĠĠ Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 2 0 0 0 0 F 1 2 1 0 0 3 2 0 0 0 1 0 0 0 1 4 2 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . volume ( zone 2 , Ġ 1 0 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Source 0 Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 0 0 0 0 0 F 1 3 E 0 0 0 0 0 0 0 0 0 0 0 1 2 AF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . listen ( zone Ġ= Ġzone 1 , Ġsource Ġ= Ġsource 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Source 1 Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 2 0 0 0 0 0 0 F 1 3 E 0 0 0 0 0 0 0 1 0 0 0 1 2 BF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . listen ( zone Ġ= Ġzone 1 , Ġsource Ġ= Ġsource 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Source 0 Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 1 7 0 0 5 0 2 0 0 0 0 0 0 F 1 3 E 0 0 0 0 0 0 0 0 0 0 0 1 2 BF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . listen ( zone Ġ= Ġzone 2 , Ġsource Ġ= Ġsource 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Source 1 Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 1 7 0 0 5 0 2 0 0 0 0 0 0 F 1 3 E 0 0 0 0 0 0 0 1 0 0 0 1 2 CF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . listen ( zone Ġ= Ġzone 2 , Ġsource Ġ= Ġsource 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Turn On Volume Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 Ġ 0 0 Ġ 0 0 Ġ 7 F Ġ 0 0 Ġ 0 0 Ġ 7 0 Ġ 0 0 Ġ 0 5 Ġ 0 2 Ġ 0 0 Ġ 0 0 Ġ 0 0 Ġ 0 4 Ġ 0 0 Ġ 0 0 Ġ 0 0 Ġ 0 1 Ġ 0 0 Ġ 0 1 Ġ 0 0 Ġ 0 B Ġ 0 D ĠF 7 " ĊĠĠĠĠĠĠĠ Ġ. replace (" Ġ", Ġ""). to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . turn On Volume ( zone 1 , Ġ 2 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Turn On Volume Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 1 0 0 0 4 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 6 1 9 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . turn On Volume ( zone 2 , Ġ 4 4 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest B ass Up Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 0 0 0 0 0 0 0 6 9 0 0 0 0 0 0 0 0 0 0 0 1 6 BF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . b ass Up ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest B ass Up Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 1 0 0 0 0 0 0 6 9 0 0 0 0 0 0 0 0 0 0 0 1 6 CF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . b ass Up ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest B ass Down Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 0 0 0 0 0 0 0 6 A 0 0 0 0 0 0 0 0 0 0 0 1 6 CF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . b ass Down ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest B ass Down Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 1 0 0 0 0 0 0 6 A 0 0 0 0 0 0 0 0 0 0 0 1 6 DF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . b ass Down ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest B ass Flat Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 A 0 8 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . b ass Set ( zone 1 , Ġ 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest B ass Flat Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 A 0 9 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . b ass Set ( zone 2 , Ġ 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Tre ble Up Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 0 0 0 0 1 0 0 6 9 0 0 0 0 0 0 0 0 0 0 0 1 6 CF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . tre ble Up ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Tre ble Up Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 1 0 0 0 1 0 0 6 9 0 0 0 0 0 0 0 0 0 0 0 1 6 DF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . tre ble Up ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Tre ble Down Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 0 0 0 0 1 0 0 6 A 0 0 0 0 0 0 0 0 0 0 0 1 6 DF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . tre ble Down ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Tre ble Down Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 1 0 0 0 1 0 0 6 A 0 0 0 0 0 0 0 0 0 0 0 1 6 EF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . tre ble Down ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Tre ble Flat Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 A 0 9 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . tre ble Set ( zone 1 , Ġ 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Tre ble Flat Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 A 0 AF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . tre ble Set ( zone 2 , Ġ 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest L oud ness On Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 1 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . loud ness ( zone 1 , ĠL oud ness . ON )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest L oud ness On Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 2 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . loud ness ( zone 2 , ĠL oud ness . ON )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest L oud ness Off Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . loud ness ( zone 1 , ĠL oud ness . OFF )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest L oud ness Off Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . loud ness ( zone 2 , ĠL oud ness . OFF )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Balance Left Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 0 0 0 0 3 0 0 6 A 0 0 0 0 0 0 0 0 0 0 0 1 6 FF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . balance Left ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Balance Left Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 1 0 0 0 3 0 0 6 A 0 0 0 0 0 0 0 0 0 0 0 1 7 0 F 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . balance Left ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Balance Right Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 0 0 0 0 3 0 0 6 9 0 0 0 0 0 0 0 0 0 0 0 1 6 EF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . balance Right ( zone 1 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Balance Right Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 5 0 5 0 2 0 0 0 1 0 0 0 3 0 0 6 9 0 0 0 0 0 0 0 0 0 0 0 1 6 FF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . balance Right ( zone 2 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Balance Center ed Zone 1 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 A 0 BF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . balance Set ( zone 1 , Ġ 0 )). isEqualTo ( expected ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Balance Center ed Zone 2 () Ġ{ ĊĠĠĠ Ġval Ġexpected Ġ= Ġ" F 0 0 0 0 0 7 F 0 0 0 0 7 0 0 0 0 5 0 2 0 0 0 1 0 0 0 3 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 A 0 CF 7 ". to Hex ByteArray () ĊĠĠĠ ĠassertThat ( rus sound Commands . balance Set ( zone 2 , Ġ 0 )). isEqualTo ( expected ) ĊĠ Ġ} Ċ } Ċ