### Question:
Characteristics { public int[] autoFocusModes() { return cameraCharacteristics.get(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES); } Characteristics(CameraCharacteristics cameraCharacteristics); boolean isFrontFacingLens(); boolean isFlashAvailable(); boolean isFixedFocusLens(); boolean isLegacyDevice(); int getSensorOrientation(); int[] autoExposureModes(); int[] autoFocusModes(); Set<Size> getJpegOutputSizes(); Set<Size> getSurfaceOutputSizes(); Set<Range<Integer>> getTargetFpsRanges(); Range<Integer> getSensorSensitivityRange();  }### Answer:
@Test public void autoFocusModes() throws Exception { int[] availableExposures = { CameraMetadata.CONTROL_AF_MODE_CONTINUOUS_VIDEO, CameraMetadata.CONTROL_AF_MODE_EDOF, CameraMetadata.CONTROL_AF_MODE_OFF }; given(cameraCharacteristics.get(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES)) .willReturn(availableExposures); int[] autoFocusModes = testee.autoFocusModes(); assertEquals(availableExposures, autoFocusModes); }