package study.hard.javalib.nativelib;

import org.junit.Test;

public class LanguageTest {

	@Test
	public void testStaticVariable() {
		ClassThatHasStaticVariable a1 = new ClassThatHasStaticVariable();
		ClassThatHasStaticVariable a2 = new ClassThatHasStaticVariable();
	}

}

class ClassThatHasStaticVariable {
	static int count = 0;

	ClassThatHasStaticVariable() {
		count++;
		System.out.print(count);
	}
}
@@ -59,36 +59,226 @@
 st;%0A
-%0Apublic class LanguageTest %7B
+import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport study.hard.javalib.commons.entity.BasisObject;%0A%0Apublic class LanguageTest %7B%0A%0A%09private static Logger logger = LoggerFactory.getLogger(LanguageTest.class);
 %0A%0A%09@
@@ -386,16 +386,45 @@
 able();%0A
+%09%09logger.debug(%22a1: %22 + a1);%0A
 %09%09ClassT
@@ -488,49 +488,183 @@
 );%0A%09
-%7D%0A%0A%7D%0A%0Aclass ClassThatHasStaticVariable %7B%0A
+%09logger.debug(%22a2: %22 + a2);%0A%09%7D%0A%0A%09private static class ClassThatHasStaticVariable extends BasisObject %7B%0A%09%09private static final long serialVersionUID = -8833377195166280242L;%0A%0A%09
 %09sta
@@ -683,16 +683,17 @@
 t = 0;%0A%0A
+%09
 %09ClassTh
@@ -718,16 +718,17 @@
 e() %7B%0A%09%09
+%09
 count++;
@@ -734,33 +734,42 @@
 ;%0A%09%09
-System.out.print(
+%09logger.debug(%22count: %22 + 
 count);%0A
 %09%7D%0A%7D
@@ -768,8 +768,13 @@
 t);%0A
+%09%09%7D%0A
 %09%7D%0A%7D
+%0A

Update to use the Logger instead of the System.out.println().