package Ġio . android al atan . dialog . assertion Ċ Ċ import Ġio . android al atan . dialog . api . AlertDialog Builder Ċ import Ġio . android al atan . dialog . api . AlertDialog BuilderFactory Ċ Ċ class ĠMock AlertDialog BuilderFactory Ġ: ĠAlertDialog BuilderFactory Ġ{ ĊĠĠĠ Ġvar Ġcreate Count Ġ= Ġ 0 ĊĠĠĠ Ġvar Ġlast Dialog Builder : ĠMock AlertDialog Builder ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġfun Ġcreate (): ĠAlertDialog Builder Ġ{ ĊĠĠĠĠĠĠĠ Ġcreate Count ++ ĊĠĠĠĠĠĠĠ Ġreturn ĠMock AlertDialog Builder (). apply Ġ{ Ġlast Dialog Builder Ġ= Ġthis Ġ} ĊĠĠĠ Ġ} Ċ }