when(componentDao.getNullableRootProjectByKey(subModule.key(), session)).thenReturn(project);
when(componentDao.getParentModuleByKey(module.key(), session)).thenReturn(project);
when(componentDao.getParentModuleByKey(subModule.key(), session)).thenReturn(module);
when(propertiesDao.selectProjectProperties(project.key(), session)).thenReturn(newArrayList(
new PropertyDto().setKey("sonar.jira.login.secured").setValue("john"),
new PropertyDto().setKey("sonar.coverage.exclusions").setValue("**/*.java")
));
when(propertiesDao.selectProjectProperties(module.key(), session)).thenReturn(newArrayList(
new PropertyDto().setKey("sonar.jira.project.key").setValue("SONAR-SERVER")
));
// No settings on sub module -> All setting should come from the project and the module
WsTester.TestRequest request = tester.newGetRequest("batch", "project").setParam("key", subModule.key());