void (String in, String out) { final CommitIdManager<CommitId> idManager = getCommitIdManager(); final List<GraphCommit<CommitId>> commits = idManager.parseCommitList(in); PermanentLinearGraphBuilder<CommitId> graphBuilder = PermanentLinearGraphBuilder.newInstance(commits); PermanentLinearGraphImpl graph = graphBuilder.build(); GraphLayout graphLayout = GraphLayoutBuilder.build(graph, (o1, o2) -> { CommitId id1 = commits.get(o1).getId(); CommitId id2 = commits.get(o2).getId(); return idManager.toStr(id1).compareTo(idManager.toStr(id2)); }); assertEquals(out, permanentGraphLayoutModelToStr(graphLayout, graph.nodesCount())); }