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