void () { PsiClass psiClass = myFixture.addClass("class MyTest {void m() {}}"); JUnit5TestFrameworkSetupUtil.setupJUnit5Library(myFixture); SMTestProxy parent = new SMTestProxy("MyTest", true, "java:suite://MyTest"); SMTestProxy proxy = new SMTestProxy("nodeId", false, "java:test://MyTest.m"); proxy.setLocator(JavaTestLocator.INSTANCE); parent.addChild(proxy); proxy.putUserData(SMTestProxy.NODE_ID, "nodeId"); assertEquals("nodeId", TestUniqueId.getEffectiveNodeId(proxy, getProject(), GlobalSearchScope.projectScope(getProject()))); RunConfigurationProducer<?> producer = RunConfigurationProducer.getInstance(UniqueIdConfigurationProducer.class); MapDataContext context = new MapDataContext(); context.put(CommonDataKeys.PROJECT, getProject()); context.put(AbstractTestProxy.DATA_KEYS, new AbstractTestProxy[]{proxy}); context.put(AbstractTestProxy.DATA_KEY, proxy); context.put(Location.DATA_KEY, PsiLocation.fromPsiElement(psiClass.getMethods()[0])); JUnitConfiguration oldConfiguration = new JUnitConfiguration("", getProject()); oldConfiguration.setModule(getModule()); context.put(RunConfiguration.DATA_KEY, oldConfiguration); ConfigurationFromContext fromContext = producer.createConfigurationFromContext(ConfigurationContext.getFromContext(context, ActionPlaces.UNKNOWN)); assertEquals("MyTest.m.nodeId", fromContext.getConfiguration().getName()); }