void () { final Configuration configuration = myInspection.getConfigurations().get(0); myProfile.setToolEnabled(configuration.getUuid(), false); final String expected = """ <profile version="1.0" is_locked="true"> <option name="myName" value="test" /> <inspection_tool class="865c0c0b-4ab0-3063-a5ca-a3387c1a8741" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="SSBasedInspection" enabled="true" level="WARNING" enabled_by_default="true"> <searchConfiguration name="i" text="int i;" recursive="false" caseInsensitive="false" type="JAVA" /> </inspection_tool> </profile>"""; assertEquals(expected, buildXmlFromProfile()); }