@FixFor( "MODE-1988" )
@Test
public void shouldEnableDocumentOptimizationWithEmptyDocumentOptimizationField() {

    Document doc = Schematic.newDocument(FieldName.NAME, "repoName", FieldName.STORAGE,
                                         Schematic.newDocument(FieldName.DOCUMENT_OPTIMIZATION, Schematic.newDocument()));
    RepositoryConfiguration config = new RepositoryConfiguration(doc, "repoName");
    DocumentOptimization opt = config.getDocumentOptimization();
    assertThat(opt, is(notNullValue()));
    assertThat(opt.isEnabled(), is(false));
}