GenericProjectProperties properties = NbGradleProjectTreeTest.createProperties(name, fullName);
JavaCompatibilityModel compatibility = new JavaCompatibilityModel("1.6", "1.7");
List<JavaSourceSet> sources = Arrays.asList(createSources("main"), createSources("test"));
List<NbListedDir> listedDirs = Arrays.asList(
new NbListedDir("my-listed-dir", new File("listed-dir")));
JavaTestModel testModel = JavaTestModel.getDefaulTestModel(properties.getProjectDir());
return new NbJavaModule(properties, compatibility, sources, listedDirs, testModel);
}