void (String in, String out) { int i = in.indexOf(SEPARATOR); List<GraphCommit<CommitId>> commits = getCommitIdManager().parseCommitList(in.substring(0, i)); LinearGraph graph = PermanentLinearGraphBuilder.newInstance(commits).build(); Set<Integer> branches = parseBranchNodeIndex(in.substring(i + SEPARATOR.length())); ReachableNodes reachableNodes = new ReachableNodes(LinearGraphUtils.asLiteLinearGraph(graph)); assertEquals(out, containingBranchesGetterToStr(reachableNodes, branches, graph.nodesCount())); }