package Ġorg . open int ents . calendar . sync Ċ Ċ import Ġandroid . accounts . Account Ċ import Ġandroid . content . Abstract Th readed Sync Adapter Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . test . platform . app . Instrumentation Registry Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġandroidx . test . rule . Service Test Rule Ċ import Ġorg . hamcrest . Matchers .` is ` Ċ import Ġorg . hamcrest . Matchers . notNull Value Ċ Ċ import Ġorg . junit . Test Ċ Ċ import Ġorg . junit . Assert .* Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . runner . RunWith Ċ Ċ /** Ċ Ġ* ĠInstrument ed Ġtest , Ġwhich Ġwill Ġexecute Ġon Ġan ĠAndroid Ġdevice . Ċ Ġ* Ċ Ġ* ĠSee Ġ[ testing Ġdocumentation ]( http :// d . android . com / tools / testing ). Ċ Ġ*/ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠSync Service Test Ġ{ ĊĊ ĉ @ get : Rule Ċ ĉ val Ġservice Rule Ġ= ĠService Test Rule () ĊĊ ĉ @ Test Ċ ĉ fun Ġtest Perform Sync () Ġ{ Ċĉ ĉ val Ġservice Intent Ġ= ĠIntent () Ċĉ ĉ val Ġbinder Ġ= Ġservice Rule . bind Service ( service Intent ) Ċĉ ĉ assertThat ( binder , Ġ` is `( notNull Value ())) Ċ ĉ } Ċ } Ċ