### Question:
TesseractProcess extends AbstractProcess implements
		OcrProcess { @Override public void addImage(URI localUri) { if (!localUri.getScheme().equals("file")) { throw new IllegalArgumentException("Only local files can be processed. Path was: " + localUri); } OcrImage image = new AbstractImage() {}; image.setLocalUri(localUri); ocrImages.add(image); }  @Override void addImage(URI localUri); @Override void addOutput(OcrFormat format); void start();  }### Answer:
@Test public void shouldAddOneImage() throws Exception { assertEquals("Number of images", 0, processSpy.getNumberOfImages()); processSpy.addImage(new URI("file:/test.tif")); assertEquals("Number of images", 1, processSpy.getNumberOfImages()); }
@Test(expected=IllegalArgumentException.class) public void shouldRejectRemoteUriForImage() throws Exception { processSpy.addImage(new URI("http: }