public void testDataBinding() {
Map<String, Schema> properties =
ImmutableMap.of("oneProp", CustomSchema.lockedStringField(null));
Schema simpleSchema = CustomSchema.objectSchema(properties, null, false);
ApiMethod apiMethodWithSchema = new MockApiMethod();
mockService.schemaForMethod.put(apiMethodWithSchema, simpleSchema);
ApiMethod apiMethodWithoutSchema = new MockApiMethod();
mockService.schemaForMethod.put(apiMethodWithoutSchema, null);
// Set the first method and some data in the editors.
form.setContent(mockService, apiMethodWithSchema, simpleSchema, "");
String value = "{\n \"oneProp\": \"oneValue\"\n}";