ConstSchema extends Schema { public static ConstSchemaBuilder builder() { return new ConstSchemaBuilder(); } protected  ConstSchema(ConstSchemaBuilder builder); static ConstSchemaBuilder builder(); Object getPermittedValue();  }
@Test public void toStringTest() { ConstSchema subject = ConstSchema.builder().permittedValue(true).build(); String actual = subject.toString(); assertEquals("{\"const\":true}", actual); }
@Test public void toStringWithNull() { ConstSchema subject = ConstSchema.builder().permittedValue(null).build(); String actual = subject.toString(); assertEquals("{\"const\":null}", actual); }
@Test public void toStringWithObject() { ConstSchema subject = ConstSchema.builder().permittedValue(new JSONObject("{\"a\":2}")).build(); String actual = subject.toString(); assertEquals("{\"const\":{\"a\":2}}", actual); }