MultiplePdfSourceMultipleOutputParameters extends MultiplePdfSourceParameters implements SingleOrMultipleOutputTaskParameters { public String getSpecificResultFilename(int fileNumber) { return getSpecificResultFilename(fileNumber, ".pdf"); }  @Override String getOutputPrefix(); @Override void setOutputPrefix(String outputPrefix); @Override SingleOrMultipleTaskOutput getOutput(); @Override void setOutput(SingleOrMultipleTaskOutput output); void addSpecificResultFilename(String filename); void addSpecificResultFilenames(Collection<String> filenames); List<String> getSpecificResultFilenames(); String getSpecificResultFilename(int fileNumber); String getSpecificResultFilename(int fileNumber, String expectedExtension); @Override int hashCode(); @Override boolean equals(Object other);  }
@Test public void getSpecificResultFilename() { MultiplePdfSourceMultipleOutputParameters victim = new MultiplePdfSourceMultipleOutputParameters(); victim.addSpecificResultFilenames(Arrays.asList("one", "two", "three.json")); assertEquals("one.txt", victim.getSpecificResultFilename(1, ".txt")); assertEquals("two.pdf", victim.getSpecificResultFilename(2)); assertEquals("three.json", victim.getSpecificResultFilename(3, "")); assertNull(victim.getSpecificResultFilename(10)); }