package Ġcom . ro aim . p ind own loader . mock Ċ Ċ import Ġandroid . graphics . Bitmap Ċ import Ġcom . ro aim . p ind own loader . core . Remote Api Ċ import Ġcom . ro aim . p ind own loader . core . Remote DataSource Ċ import Ġokhttp 3 . ResponseBody Ċ import Ġorg . mockito . Mockito Ċ Ċ class ĠMock Bitmap Remote DataSource ( remote Api : ĠRemote Api Ġ= ĠMockito . spy ( Remote Api :: class . java )) Ġ: ĊĠĠĠ ĠRemote DataSource < Bitmap >( remote Api ) Ġ{ ĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġconvert ( response : ĠResponse Body ?): ĠBitmap ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġresponse ?. let Ġ{ ĠMockito . spy ( Bitmap :: class . java ) Ġ} ĊĠĠĠ Ġ} Ċ Ċ }