Assuming I have the following class and method:

```
package generation;

class HelloWorld {
  public boolean isEven(int val) {
    if ( (val % 2) == 0)
      return true;
    else
      return false;
  }
}

```

Assume I want to generated the following JUnit test:

package generation;

```
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class HelloWorldTest {

    @Test
    public void testIsEven() {
        HelloWorld h = new HelloWorld();
        assertTrue(h.isEven(2));
        assertFalse(h.isEven(1));
    }
} 

```

Given the following method of tree walking a Java Syntax Tree:
[How can I use the java Eclipse Abstract Syntax Tree in a project outside Eclipse? (ie not an eclipse plugin)](https://stackoverflow.com/questions/964747/how-can-i-use-the-java-eclipse-abtract-syntax-tree-in-a-project-outside-eclipse)

How would you code generate the Unit test case given the class example up the top?