}
@Test
public void renaming_is_applied_to_default_profile_properties() {
QualityProfileDto p1 = factory.create(dbSession, new QProfileName("xoo", "P1"));
db.propertiesDao().setProperty(new PropertyDto().setKey("sonar.profile.xoo").setValue("P1"), dbSession);
db.propertiesDao().setProperty(new PropertyDto().setKey("sonar.profile.java").setValue("P1"), dbSession);
db.propertiesDao().setProperty(new PropertyDto().setKey("sonar.profile.js").setValue("JS1"), dbSession);
dbSession.commit();
dbSession.clearCache();
factory.rename(p1.getKey(), "P2");
dbSession.clearCache();