JUnit is a framework for writing for writing automated testing in java. I'd suggest dev-java/junit
Created attachment 163 [details] junit-1.3.ebuild
I would prefer to compile this from sources, but that will have to wait for later.