long newLargeValueSizeInBytes = Default.MINIMUM_BINARY_SIZE_IN_BYTES * 2;
Editor editor = repository.getConfiguration().edit();
EditableDocument binaryStorage = editor.getOrCreateDocument(FieldName.STORAGE)
.getOrCreateDocument(FieldName.BINARY_STORAGE);
binaryStorage.setNumber(FieldName.MINIMUM_BINARY_SIZE_IN_BYTES, newLargeValueSizeInBytes);
Changes changes = editor.getChanges();
// Apply the changes to the deployed repository ...
engine.update(name, changes).get(); // blocks
assertThat(engine.getRepositoryState(name), is(State.NOT_RUNNING));