import java.util.ArrayList; import org.junit.Test; public class Example { @Test public void method() { org.junit.Assert.assertTrue( "isEmpty", new ArrayList().isEmpty()); } @Test(timeout=100) public void infinity() { while(true); } }