### Question:
ParametersProvider implements ParametersOperator { public Size getPreviewSize() { return getSelectedParameters().getValue(PREVIEW_SIZE); }  @Override void updateParameters(Parameters selectedParameters); Flash getFlash(); FocusMode getFocus(); Size getStillCaptureSize(); Size getPreviewSize(); float getStillCaptureAspectRatio(); Range<Integer> getPreviewFpsRange(); Integer getSensorSensitivity(); Integer getJpegQuality();  }### Answer:
@Test public void getPreviewSize() throws Exception { given(parameters.getValue(Parameters.Type.PREVIEW_SIZE)) .willReturn(new Size(1920, 1080)); testee.updateParameters(parameters); Size previewSize = testee.getPreviewSize(); assertEquals(new Size(1920, 1080), previewSize); }