### Question:
InitialParametersValidator { void validate(Parameters parameters) { validateParameter(parameters, PICTURE_SIZE); validateParameter(parameters, PREVIEW_SIZE); validateParameter(parameters, FOCUS_MODE); validateParameter(parameters, FLASH); }    }### Answer:
@Test(expected = IllegalArgumentException.class) public void noPictureSize() throws Exception { parameters.putValue(PICTURE_SIZE, null); testee.validate(parameters); }
@Test(expected = IllegalArgumentException.class) public void noPreviewSize() throws Exception { parameters.putValue(PREVIEW_SIZE, null); testee.validate(parameters); }
@Test(expected = IllegalArgumentException.class) public void noFocusMode() throws Exception { parameters.putValue(FOCUS_MODE, null); testee.validate(parameters); }
@Test(expected = IllegalArgumentException.class) public void noFlash() throws Exception { parameters.putValue(FLASH, null); testee.validate(parameters); }