### Question:
ZipkinManager { @ManagedAttribute public void setSamplingLevel(int samplingLevel) { if (samplingLevel >= MIN_LEVEL && samplingLevel <= MAX_LEVEL) { this.samplingLevel = samplingLevel; } else { throw new IllegalArgumentException("Sampling level " + samplingLevel + " is not in the range [" + MIN_LEVEL + ";" + MAX_LEVEL + "["); } }  boolean shouldTrace(); @ManagedAttribute int getSamplingLevel(); @ManagedAttribute void setSamplingLevel(int samplingLevel); ZipkinRequestUUID createNewZipkinRequestUUID(@Nonnull RequestUUID cougarUuid, @Nullable String traceId,
                                                        @Nullable String spanId, @Nullable String parentSpanId,
                                                        @Nullable String sampled, @Nullable String flags, int port); static long getRandomLong(); static long hexUnsignedStringToLong(@Nonnull String hexValue);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void setSamplingLevel_WhenLevelIsBelowLowerBound_ShouldThrowIAE() { victim.setSamplingLevel(-1); }
@Test(expected = IllegalArgumentException.class) public void setSamplingLevel_WhenLevelIsOverUpperBound_ShouldThrowIAE() { victim.setSamplingLevel(1001); }