### Question:
UpdateParametersRoutine { public void updateParameters(@NonNull UpdateRequest request) { Capabilities capabilities = cameraDevice.getCapabilities(); cameraDevice.updateParameters( combineParameters(asList( flashModeParameters(request, capabilities), focusModeParameters(request, capabilities) )) ); } UpdateParametersRoutine(CameraDevice cameraDevice); void updateParameters(@NonNull UpdateRequest request);  }### Answer:
@Test public void updateParameters() throws Exception { UpdateRequest request = UpdateRequest.builder() .flash(torch()) .focusMode(autoFocus()) .build(); testee.updateParameters(request); verify(cameraDevice).updateParameters( new Parameters() .putValue( Parameters.Type.FLASH, Flash.TORCH ) .putValue( Parameters.Type.FOCUS_MODE, FocusMode.AUTO ) ); }