private void testJavaSourcesModelForJavaProject(
String relativeProjectName,
final JavaSourcesModel expected,
final String... projectDependencies) {
runTestForSubProject(relativeProjectName, new ProjectConnectionTask() {
public void doTask(ProjectConnection connection) throws Exception {
JavaSourcesModel sourcesModel
= fetchSingleProjectInfo(connection, JavaSourcesModelBuilder.COMPLETE);
assertNotNull("Must have a JavaSourcesModel.", sourcesModel);
SourceSetVerification.verifySourcesModelWithoutDependencies(expected, sourcesModel);