import junit.framework.*;

public class Loops extends TestCase {

    public void testFor() {
        for(int a = 1; a < 10;){
            a+= 3;
        }
        Assert.assertEquals(a, 10);

        for (int b = 0; b < 20; b+=2) {
        }
        Assert.assertEquals(b, 20);
    }

    public void testDoWhile() {
        int x = 0;
        do {
            x += 1;
        } while (x <= 10);
        Assert.assertEquals(x, 11);
    }

}


@@ -279,16 +279,153 @@
 %0A    %7D%0A%0A
+    public void testDeadLoop() %7B%0A        int x = 0;%0A        for (;;) %7B%0A            x ++;%0A            if (x %3E 10) break;%0A        %7D%0A    %7D%0A%0A
     publ

Add a for(;;) testcase