### Question:
OcrsdkClient { public void submitImage(byte[] imageBytes) { String returnedXml = http.submitPost(submitImageUrl(), imageBytes); if (taskId == null) { Element task = getTaskElement(returnedXml); taskId = task.getAttribute("id"); } } OcrsdkClient(String username, String password); void submitImage(byte[] imageBytes); void addLanguage(String lang); void addExportFormat(String format); void addTextType(String textType); void processDocument(); InputStream getResultForFormat(String format);  }### Answer:
@Test public void submittingOneImage() { client.submitImage(fakeImage); verify(httpMock, times(1)).submitPost(sdkServer + "submitImage", fakeImage); }
@Test public void submittingTwoImages() { client.submitImage(fakeImage); client.submitImage(fakeImage); verify(httpMock, times(1)).submitPost(sdkServer + "submitImage", fakeImage); verify(httpMock, times(1)).submitPost(sdkServer + "submitImage?taskId=some-id", fakeImage); }
@Test public void submittingThreeImages() { client.submitImage(fakeImage); client.submitImage(fakeImage); client.submitImage(fakeImage); verify(httpMock, times(1)).submitPost(sdkServer + "submitImage", fakeImage); verify(httpMock, times(2)).submitPost(sdkServer + "submitImage?taskId=some-id", fakeImage); }