### Question:
OcrsdkClient { public void addExportFormat(String format) { if (formatsToUse.size() == 3) { throw new IllegalStateException("Max 3 result formats allowed!"); } formatsToUse.add(format); } 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(expected=IllegalStateException.class) public void processingWithFourExportFormats() { client.addExportFormat("xml"); client.addExportFormat("txt"); client.addExportFormat("docx"); client.addExportFormat("pdfa"); }