public void testNulls() {
NullPointerTester tester = new NullPointerTester()
.setDefault(SleepingStopwatch.class, stopwatch)
.setDefault(int.class, 1)
.setDefault(double.class, 1.0d);
tester.testStaticMethods(RateLimiter.class, Visibility.PACKAGE);
tester.testInstanceMethods(RateLimiter.create(stopwatch, 5.0), Visibility.PACKAGE);
}
private long measureTotalTimeMillis(RateLimiter rateLimiter, int permits, Random random) {
long startTime = stopwatch.instant;