anyone help me to figure out the java.lang.StackOverflowError problem?

In my program, I used the recursive techniques which I guess it's good soluction. But when I tried to use Junit to test the recursive unit part. the StackOverflowError occured. It seems JUnit doesn't support recursive programming. or there is any other problem which I don't know. I need you guys' help. Really appreciate it.