### Question:
PhotoResult { public PendingResult<BitmapPhoto> toBitmap() { return toBitmap(originalSize()); } PhotoResult(PendingResult<Photo> pendingResult); static PhotoResult fromFuture(Future<Photo> photoFuture); PendingResult<BitmapPhoto> toBitmap(); PendingResult<BitmapPhoto> toBitmap(Transformer<Size, Size> sizeTransformer); PendingResult<Void> saveToFile(File file); PendingResult<Photo> toPendingResult();  }### Answer:
@Test public void toBitmap() throws Exception { PendingResult<Photo> pendingResult = spy(PENDING_RESULT); PhotoResult photoResult = new PhotoResult(pendingResult); PendingResult<BitmapPhoto> result = photoResult.toBitmap(); assertNotNull(result); verify(pendingResult).transform( isA(BitmapPhotoTransformer.class) ); }