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

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