@Test
public void do_not_reset_default_profile_if_still_valid() throws Exception {
tester = new ServerTester().addXoo().addComponents(new SimpleProfileDefinition("one", true), new SimpleProfileDefinition("two", false));
tester.start();
PropertiesDao propertiesDao = dbClient().propertiesDao();
propertiesDao.updateProperties("sonar.profile.xoo", "one", "two");
verifyProperty("sonar.profile.xoo", "two");
tester.get(Platform.class).restart();
// restart must keep "two" as default profile, even if "one" is marked as it
verifyProperty("sonar.profile.xoo", "two");