void () { initRepositories("community", "idea"); VcsTaskHandler[] handlers = VcsTaskHandler.getAllHandlers(getProject()); assertEquals(1, handlers.length); VcsTaskHandler handler = handlers[0]; String startName = "-Hello, this is long name with : and $"; assertFalse(handler.isBranchNameValid(startName)); String cleanUpBranchName = handler.cleanUpBranchName(startName); assertTrue(handler.isBranchNameValid(cleanUpBranchName)); }