package Ġcom . simple mobile tools . calculator Ċ Ċ import Ġandroid . support . test . rule . Activity Test Rule Ċ import Ġcom . simple mobile tools . calculator . activities . MainActivity Ċ import Ġcom . simple mobile tools . calculator . pages . About Page Ċ import Ġcom . simple mobile tools . calculator . pages . ActionBar Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ Ċ class ĠAbout Test Ġ{ ĊĊĠĠĠ Ġ@ get : Rule ĊĠĠĠ Ġval Ġactivity Rule Ġ= ĠActivity Test Rule ( MainActivity :: class . java ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġdoes Have Correct ActionBar () Ġ{ ĊĠĠĠĠĠĠĠ ĠAction Bar (). goTo About () ĊĠĠĠĠĠĠĠ ĠAbout Page (). assert ActionBar Text Is Correct () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. go Back To Calculator () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ After ĊĠĠĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠĠĠĠĠ Ġactivity Rule . finish Activity () ĊĠĠĠ Ġ} Ċ }