buildInfos.put(4, Collections.<GradleBuildInfoQuery<?>>singletonList(
InfoQueries.toQueryWithKnownClassPath(ConstBuilders.constBuildInfoBuilder(new SerializableObject()))));
toolingModels.add(IdeaProject.class);
final GenericModelFetcher fetcher = new GenericModelFetcher(buildInfos, projectInfos, toolingModels);
runTestForSubProject("apps:app1", new ProjectConnectionTask() {
public void doTask(ProjectConnection connection) throws Exception {
FetchedModels models = verifyNoError(fetcher.getModels(connection, TestUtils.defaultInit()));
BuilderResult buildInfo1 = CollectionUtils
.getSingleElement(models.getBuildInfoResults().get(1));
BuilderResult buildInfo2 = CollectionUtils
.getSingleElement(models.getBuildInfoResults().get(2));