### Question:
SchemaConfigured implements HeapSize, SchemaAware { public String schemaConfAsJSON() { return "{\"tableName\":\"" + tableName + "\",\"cfName\":\"" + cfName + "\"}"; } private  SchemaConfigured(Configuration conf);  SchemaConfigured();  SchemaConfigured(Configuration conf, Path path);  SchemaConfigured(Path path);  SchemaConfigured(Configuration conf, String tableName, String cfName);  SchemaConfigured(SchemaAware that); static SchemaConfigured createUnknown(); @Override String getTableName(); @Override String getColumnFamilyName(); @Override SchemaMetrics getSchemaMetrics(); void passSchemaMetricsTo(SchemaConfigured target); static void resetSchemaMetricsConf(SchemaConfigured target); @Override long heapSize(); String schemaConfAsJSON(); static final int SCHEMA_CONFIGURED_UNALIGNED_HEAP_SIZE; }### Answer:
@Test public void testToString() throws JSONException { SchemaConfigured sc = new SchemaConfigured(null, TABLE_NAME, CF_NAME); JSONStringer json = new JSONStringer(); json.object(); json.key("tableName"); json.value(TABLE_NAME); json.key("cfName"); json.value(CF_NAME); json.endObject(); assertEquals(json.toString(), sc.schemaConfAsJSON()); }