### Question:
Foo { public void foo(boolean isLoop) { while (isLoop) { try { Thread.sleep(300); } catch (InterruptedException e) { e.printStackTrace(); } printThreadInfo(); } }  void foo(boolean isLoop);  }### Answer:
@Test public void test01() { new Foo().foo(false); }
@Test public void test02() { new Foo().foo(true); }
@Test public void test03() { new Foo().foo(true); }