DomainBundlePackageBuilder implements PackageBuilder { public DomainBundlePackageBuilder withArchiver(AbstractArchiver archiver) { checkArgument(archiver != null, "Archiver must not be null"); this.archiver = (DomainBundleArchiver) archiver; return this; }  DomainBundlePackageBuilder withMaven(File folder); DomainBundlePackageBuilder withDomain(File folder); DomainBundlePackageBuilder withApplications(File folder); DomainBundlePackageBuilder withArchiver(AbstractArchiver archiver); @Override void createPackage(Path originFolderPath, Path destinationPath); @Override void createPackage(Path destinationPath);  }
@Test public void setNullArchiver() { expectedException.expect(IllegalArgumentException.class); this.builder.withArchiver(null); }