TextExtractionStage extends AbstractProcessStage { @Override public void init() throws RequiredArgumentMissingException { if (metadataPrefix == null) { throw new RequiredArgumentMissingException("Missing required configuration: metadataPrefix"); } if (contentField == null) { throw new RequiredArgumentMissingException("Missing required configuration: contentField"); } if (urlField == null) { throw new RequiredArgumentMissingException("Missing required configuration: urlField"); } if (fileSizeField == null && maxSizeInBytes > 0) { throw new RequiredArgumentMissingException( "Missing required configuration: fileSizeField - FileSizeField must be set when maxSizeInBytes is set"); } if (allowedFileFormats != null && fileFormatField == null) { throw new RequiredArgumentMissingException( "Missing required configuration: fileFormatField - fileFormatField must be set when allowedFileFormats is set"); } setLowerCaseAllowedFileFormats(); }  @Override void process(LocalDocument doc); @Override void init(); void setUrlField(String urlField); void setContentField(String contentField); String getContentField(); void setMetadatPrefix(String prefix); String getMetadataPrefix(); long getMaxSizeInBytes(); void setMaxSizeInBytes(long size); String getFileSizeField(); void setFileSizeField(String fileSizeField); String getFileFormatField(); void setFileFormatField(String fileFormatField); List<String> getAllowedFileFormats(); void setAllowedFileFormats(List<String> allowedFileFormats);  }
@Test public void testInit() throws RequiredArgumentMissingException { stage.init(); }