JavaClass testClass = JavaParser.create(JavaClass.class).setPackage(topLevelPackage);
testClass.setName("AbstractTestCase").setAbstract(true);
JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);
try
{
facet.saveTestJavaSource(testClass.getEnclosingType());
}
catch (FileNotFoundException ffe)
{
// this is not good :P
ffe.printStackTrace();