### Question:
CaptureRequestBuilder { CaptureRequest build() throws CameraAccessException { validate(); return Request.create(this); } private  CaptureRequestBuilder(CameraDevice cameraDevice, @RequestTemplate int requestTemplate);   }### Answer:
@Test public void onlyMandatoryParameters() throws Exception { CaptureRequestBuilder builder = builderWithMandatoryArguments(); CaptureRequest result = builder.build(); assertNotNull(result); assertEquals(Collections.singletonList(surface), builder.surfaces); assertEquals(cameraDevice, builder.cameraDevice); assertEquals(CameraDevice.TEMPLATE_STILL_CAPTURE, builder.requestTemplate); }