### Question:
CameraParametersDecorator { @NonNull public Set<Integer> getSensorSensitivityValues() { String[] rawValues = extractRawCameraValues(RAW_ISO_SUPPORTED_VALUES_KEYS); return convertParamsToInts(rawValues); } 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 getSensorSensitivityValues_Available() throws Exception { given(parameters.get(anyString())) .willReturn("400,600,1200"); Set<Integer> isoValues = parametersProvider.getSensorSensitivityValues(); Assert.assertEquals( isoValues, asSet(400, 600, 1200) ); }
@Test public void getSensorSensitivityValues_NotAvailable() throws Exception { given(parameters.get(anyString())) .willReturn(null); Set<Integer> isoValues = parametersProvider.getSensorSensitivityValues(); Assert.assertEquals( isoValues, Collections.<Integer>emptySet() ); }