void (@NotNull ValidationResultType expected, @NotNull CustomValidationRule validator, @NotNull String data, @NotNull EventContext context) { final Disposable disposable = Disposer.newDisposable(); try { final ExtensionPoint<ConfigurationType> ep = Extensions.getRootArea().getExtensionPoint(ConfigurationType.CONFIGURATION_TYPE_EP); TestCase.assertNotNull(ep); ep.registerExtension(new BaseTestConfigurationType.FirstTestRunConfigurationType(), disposable); ep.registerExtension(new BaseTestConfigurationType.SecondTestRunConfigurationType(), disposable); ep.registerExtension(new BaseTestConfigurationType.MultiFactoryTestRunConfigurationType(), disposable); TestCase.assertEquals(expected, validator.validate(data, context)); } finally { Disposer.dispose(disposable); } }