package Ġcom . battle l ancer . series guide . backend Ċ Ċ import Ġcom . google . android . gms . common . api . ApiException Ċ import Ġcom . google . android . gms . common . api . Common StatusCode s Ċ import Ġcom . google . android . gms . common . api . Status Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġorg . junit . Test Ċ Ċ class ĠHex agon Auth Error Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġis SignIn Required Error () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtest Exception Ġ= ĠApiException ( Status ( Common StatusCode s . SIGN _ IN _ REQUIRED )) ĊĠĠĠĠĠĠĠ Ġval Ġhex agon Error Ġ= ĠHex agon Auth Error . build (" Test Ġaction ", Ġtest Exception ) ĊĊĠĠĠĠĠĠĠ Ġ// ĠStatus Ġcode Ġis Ġextracted . ĊĠĠĠĠĠĠĠ ĠassertThat ( hex agon Error . statusCode ). isEqualTo ( Common StatusCode s . SIGN _ IN _ REQUIRED ) ĊĠĠĠĠĠĠĠ ĠassertThat ( hex agon Error . action ). isEqualTo (" Test Ġaction ") ĊĠĠĠĠĠĠĠ Ġ// ĠDetect s ĠApiException Ġwith Ġsign - in Ġrequired Ġcode . ĊĠĠĠĠĠĠĠ ĠassertThat ( hex agon Error . is SignIn Required Error ()). isTrue () ĊĠĠĠ Ġ} Ċ }