### Question:
StopCameraRoutine implements Runnable { @Override public void run() { cameraDevice.stopPreview(); cameraDevice.close(); } StopCameraRoutine(CameraDevice cameraDevice); @Override void run();  }### Answer:
@Test public void stop() throws Exception { testee.run(); InOrder inOrder = inOrder(cameraDevice); inOrder.verify(cameraDevice).stopPreview(); inOrder.verify(cameraDevice).close(); }