NameGenerationRequest { public static NameGenerationRequest nameRequest() { return new NameGenerationRequest(SejdaFileExtensions.PDF_EXTENSION); } private  NameGenerationRequest(String extension); static NameGenerationRequest nameRequest(); static NameGenerationRequest nameRequest(String extension); NameGenerationRequest page(int page); NameGenerationRequest fileNumber(int fileNumber); NameGenerationRequest bookmark(String bookmark); NameGenerationRequest originalName(String originalName); NameGenerationRequest text(String text); Integer getPage(); Integer getFileNumber(); String getBookmark(); String getOriginalName(); String getExtension(); String getText();  }
@Test(expected = IllegalArgumentException.class) public void blankExtension() { NameGenerationRequest.nameRequest(""); }
@Test(expected = IllegalArgumentException.class) public void nullExtension() { NameGenerationRequest.nameRequest(null); }