### Question:
CameraParametersDecorator { public void setSensorSensitivityValue(int isoValue) { String isoKey = findExistingKey(RAW_ISO_CURRENT_VALUE_KEYS); if (isoKey != null) { cameraParameters.set(isoKey, isoValue); } } CameraParametersDecorator(Camera.Parameters cameraParameters); Camera.Parameters asCameraParameters(); boolean isZoomSupported(); List<Size> getSupportedPreviewSizes(); List<Size> getSupportedPictureSizes(); List<String> getSupportedFlashModes(); List<String> getSupportedFocusModes(); List<int[]> getSupportedPreviewFpsRange(); String getFocusMode(); void setFocusMode(String focusMode); String getFlashMode(); void setFlashMode(String flash); Camera.Size getPictureSize(); Camera.Size getPreviewSize(); void setPreviewSize(int width, int height); void setPictureSize(int width, int height); void setPreviewFpsRange(int min, int max); @NonNull Set<Integer> getSensorSensitivityValues(); void setSensorSensitivityValue(int isoValue); int getJpegQuality(); void setJpegQuality(int quality);  }### Answer:
@Test public void setSensorSensitivityValues_Available() throws Exception { given(parameters.get(anyString())) .willReturn("400"); parametersProvider.setSensorSensitivityValue(600); verify(parameters, times(1)).set(anyString(), anyInt()); }
@Test public void setSensorSensitivityValues_NotAvailable() throws Exception { given(parameters.get(anyString())) .willReturn(null); parametersProvider.setSensorSensitivityValue(600); verify(parameters, times(0)).set(anyString(), anyInt()); }