### Question:
NUTS implements PosteriorSamplingAlgorithm { public static NUTSBuilder builder() { return new NUTSBuilder(); }  static NUTSBuilder builder(); @Override NetworkSamples getPosteriorSamples(final ProbabilisticModel model,
                                              final List<? extends Variable> variablesToSampleFrom,
                                              final int sampleCount); @Override NetworkSamplesGenerator generatePosteriorSamples(final ProbabilisticModel model,
                                                            final List<? extends Variable> fromVariables); Statistics getStatistics();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void doesValidateAdapStepSizeCount() { NUTS.builder().adaptCount(-1); }
@Test(expected = IllegalArgumentException.class) public void doesValidateInitialStepSize() { NUTS.builder().initialStepSize(-0.1); }
@Test(expected = IllegalArgumentException.class) public void doesValidateTargetAcceptanceUpper() { NUTS.builder().targetAcceptanceProb(1.1); }
@Test(expected = IllegalArgumentException.class) public void doesValidateTargetAcceptanceLower() { NUTS.builder().targetAcceptanceProb(-0.1); }
@Test(expected = IllegalArgumentException.class) public void doesValidateMaxEnergyChange() { NUTS.builder().maxEnergyChange(-0.1); }
@Test(expected = IllegalArgumentException.class) public void doesValidateMaxTreeHeight() { NUTS.builder().maxTreeHeight(0); }