RenderHTMLStage extends AbstractProcessStage { @Override public void init() throws RequiredArgumentMissingException { if (fields == null || fields.isEmpty()) { throw new RequiredArgumentMissingException("fields is missing. Need to know what fields to render"); } }  @Override void init(); @Override void process(LocalDocument doc); List<String> getFields(); void setFields(List<String> fields);  }
@Test(expected = RequiredArgumentMissingException.class) public void testInputFieldNotSet() throws RequiredArgumentMissingException{ RenderHTMLStage instance = new RenderHTMLStage(); instance.init(); }