@Test
  @LocalDeploy("org.nuxeo.ecm.core.test.tests:test-versioning-nooptions.xml")
  public void testNoOptions() throws Exception {
    DocumentModel doc = session.createDocumentModel("/", "doc", "File");
    doc = session.createDocument(doc);

    // no options according to config
    List<VersioningOption> opts = service.getSaveOptions(doc);
    assertEquals(0, opts.size());

    doc.setPropertyValue("dc:title", "A");
    doc = session.saveDocument(doc);

    assertVersion("0.0", doc);
    assertVersionLabel("0.0", doc);
    assertLatestVersion(null, doc);
  }
 protected void assertVersionLabel(String expected, DocumentModel doc) {
   assertEquals(expected, service.getVersionLabel(doc));
 }