void () { JsonEditorOptions editorOptions = JsonEditorOptions.getInstance(); boolean oldQuote = editorOptions.COLON_MOVE_OUTSIDE_QUOTES; try { editorOptions.COLON_MOVE_OUTSIDE_QUOTES = false; doTestColon("{\"x<caret>\"}", "{\"x:<caret>\"}"); } finally { editorOptions.COLON_MOVE_OUTSIDE_QUOTES = oldQuote; } }