### Question:
Characteristics { public boolean isFlashAvailable() { return cameraCharacteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); } 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 isFlashAvailable() throws Exception { given(cameraCharacteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE)) .willReturn(true); boolean flashAvailable = testee.isFlashAvailable(); assertTrue(flashAvailable); }