### Question:
SchemaUtil { public static String getSchemaDefinitionString(Schema schema) { StringBuilder stringBuilder = new StringBuilder("["); boolean addComma = false; for (Field field : schema.fields()) { if (addComma) { stringBuilder.append(" , "); } else { addComma = true; } stringBuilder.append(field.name()) .append(" : ") .append(field.schema().type()); } stringBuilder.append("]"); return stringBuilder.toString(); }  static Class getJavaType(final Schema schema); static Optional<Field> getFieldByName(final Schema schema, final String fieldName); static Schema getTypeSchema(final String sqlType); static int getFieldIndexByName(final Schema schema, final String fieldName); static Schema buildSchemaWithAlias(final Schema schema, final String alias); static String getSchemaFieldName(Field field); static String getJavaCastString(Schema schema); static Schema addImplicitRowTimeRowKeyToSchema(Schema schema); static Schema removeImplicitRowTimeRowKeyFromSchema(Schema schema); static Set<Integer> getRowTimeRowKeyIndexes(Schema schema); static String getSchemaDefinitionString(Schema schema); static String getSqlTypeName(Schema schema); static String buildAvroSchema(final Schema schema, String name); static Schema getAvroSerdeKsqlSchema(Schema schema); static String getFieldNameWithNoAlias(Field field); static Schema getSchemaWithNoAlias(Schema schema); static int getIndexInSchema(final String fieldName, final Schema schema); static final String ARRAY; static final String MAP; static final String ROWKEY_NAME; static final String ROWTIME_NAME; static final int ROWKEY_NAME_INDEX; }### Answer:
@Test public void shouldGetTheSchemaDefString() { String schemaDef = SchemaUtil.getSchemaDefinitionString(schema); assertThat("Invalid schema def.", schemaDef.equals("[ORDERTIME : INT64 , ORDERID : INT64 , " + "ITEMID : STRING , ORDERUNITS : " + "FLOAT64 , ARRAYCOL : ARRAY , MAPCOL : MAP]")); }