CommitBuilder { @NotNull CommitBuilder withStartRevisions(@NotNull RevisionVector startRevisions) { this.startRevisions = checkNotNull(startRevisions); return this; } CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @Nullable RevisionVector baseRevision);   CommitBuilder(@NotNull DocumentNodeStore nodeStore,
                  @NotNull Revision revision,
                  @Nullable RevisionVector baseRevision);   }
@Test public void withStartRevisionsNull() { CommitBuilder builder = new CommitBuilder(ns, null); try { builder.withStartRevisions(null); expectNPE(); } catch (NullPointerException e) { } }
@Test public void withStartRevisions() { RevisionVector head = ns.getHeadRevision(); CommitBuilder builder = new CommitBuilder(ns, head) .withStartRevisions(head); Commit c = builder.build(ns.newRevision()); assertEquals(head, c.getStartRevisions()); }