### Question:
AutoFocusRoutine { public PendingResult<FocusResult> autoFocus() { AutoFocusTask autoFocusTask = new AutoFocusTask(cameraDevice); cameraExecutor.execute(autoFocusTask); return PendingResult.fromFuture(autoFocusTask); } AutoFocusRoutine(CameraDevice cameraDevice,
                            Executor cameraExecutor); PendingResult<FocusResult> autoFocus();  }### Answer:
@Test public void autoFocus() throws Exception { PendingResult<FocusResult> result = testee.autoFocus(); verify(executor).execute(isA(AutoFocusTask.class)); assertNotNull(result); }