@Test public void testHelloThread() throws Exception { HelloThread ht = new HelloThread(); ht.mainThread(); // Thread.sleep(500); assertEquals(10, ht.number); ht.mainThreadSleep(); assertEquals(10, ht.number); }