### Question:
Characteristics { public int getSensorOrientation() { return cameraCharacteristics.get(CameraCharacteristics.SENSOR_ORIENTATION); } 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 sensorOrientation() throws Exception { given(cameraCharacteristics.get(CameraCharacteristics.SENSOR_ORIENTATION)) .willReturn(90); int sensorOrientation = testee.getSensorOrientation(); assertEquals(90, sensorOrientation); }