void () { File topDir = myProjectRoot.toNioPath().toFile(); File first = new File(topDir, "first/.mvn"); File second = new File(topDir, "second/.mvn"); assertTrue(first.mkdirs()); assertTrue(second.mkdirs()); MavenServerConnector connectorFirst = MavenServerManager.getInstance().getConnector(myProject, first.getAbsolutePath()); ensureConnected(connectorFirst); MavenServerConnector connectorSecond = MavenServerManager.getInstance().getConnector(myProject, second.getAbsolutePath()); assertSame(connectorFirst, connectorSecond); MavenServerManager.getInstance().shutdownConnector(connectorFirst, true); assertEmpty(MavenServerManager.getInstance().getAllConnectors()); }