import org.junit.Assert;
import org.junit.Test;

import java.util.concurrent.atomic.AtomicLong;

public class ScalableLoggerTest {
    @Test public void hasThrottlingConditionPassed() throws Exception {
        Assert.assertFalse(new ScalableLogger().hasThrottlingConditionPassed(new AtomicLong(543)));
        Assert.assertTrue(new ScalableLogger().hasThrottlingConditionPassed(new AtomicLong(1000)));
    }
}
@@ -88,16 +88,62 @@
 micLong;
+%0Aimport java.util.concurrent.atomic.LongAdder;
 %0A%0Apublic
@@ -242,16 +242,163 @@
 ption %7B%0A
+        LongAdder long434 = new LongAdder();%0A        long434.add(434);%0A%0A        LongAdder long1000 = new LongAdder();%0A        long1000.add(1000);%0A%0A
         
@@ -470,27 +470,15 @@
 sed(
-new AtomicL
+l
 ong
-(5
 43
-)
+4
 ));%0A
@@ -557,30 +557,18 @@
 sed(
-new AtomicL
+l
 ong
-(
 1000))
-)
 ;%0A  

fix compilation error