### Question:
PhotoResult { public PendingResult<Photo> toPendingResult() { return pendingResult; } 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 toPendingResult() throws Exception { PhotoResult photoResult = new PhotoResult(PENDING_RESULT); PendingResult<Photo> pendingResult = photoResult.toPendingResult(); assertSame( PENDING_RESULT, pendingResult ); }