### Question:
SplitBySizeParametersBuilder extends SplitParametersBuilder<SplitBySizeParameters> { @Override public SplitBySizeParameters build() { SplitBySizeParameters params = new SplitBySizeParameters(size); params.setCompress(isCompress()); params.setExistingOutputPolicy(existingOutput()); params.setVersion(getVersion()); params.setOutput(getOutput()); params.setOutputPrefix(getPrefix()); params.addSource(getSource()); params.setOptimizationPolicy(getOptimizationPolicy()); params.discardOutline(isDiscardBookmarks()); return params; }  @Override SplitBySizeParameters build();  }### Answer:
@Test public void build() throws IOException { SplitBySizeParametersBuilder victim = new SplitBySizeParametersBuilder(); victim.compress(true); FileOrDirectoryTaskOutput output = mock(FileOrDirectoryTaskOutput.class); victim.output(output); victim.existingOutput(ExistingOutputPolicy.OVERWRITE); victim.size(120l); victim.prefix("prefix"); victim.discardBookmarks(true); File file = folder.newFile("my.pdf"); PdfFileSource source = PdfFileSource.newInstanceNoPassword(file); victim.source(source); victim.version(PdfVersion.VERSION_1_7); SplitBySizeParameters params = victim.build(); assertTrue(params.isCompress()); assertTrue(params.discardOutline()); assertEquals(ExistingOutputPolicy.OVERWRITE, params.getExistingOutputPolicy()); assertEquals(PdfVersion.VERSION_1_7, params.getVersion()); assertEquals(120l, params.getSizeToSplitAt()); assertEquals("prefix", params.getOutputPrefix()); assertEquals(output, params.getOutput()); assertEquals(source, params.getSourceList().get(0)); }