### Question:
WhileDo extends PredicatedLoop { public WhileDo(NullaryPredicate test, NullaryProcedure body) { super(body, test); } WhileDo(NullaryPredicate test, NullaryProcedure body); final void run(); @Override String toString();  }### Answer:
@Test public void testWhileDo() { for (int i=0;i<3;i++){ Counter counter = new Counter(); new WhileDo(new Limit(i),counter).run(); assertEquals(i,counter.count); } }