ColumnSchema { public static ColumnSchema deserialize(byte[] serializedColumnSchema, String columnName) { checkNotNull(serializedColumnSchema); Verify.isNotNullOrEmpty(columnName); return new ColumnSchema(columnName, Util.deserializeAvroObject(serializedColumnSchema, reader)); } private  ColumnSchema(String columnName,
                         ColumnType type,
                         boolean isNullable,
                         boolean isAutoIncrement,
                         Integer maxLength,
                         Integer scale,
                         Integer precision);   ColumnSchema(String columnName, AvroColumnSchema avroColumnSchema); static ColumnSchema deserialize(byte[] serializedColumnSchema, String columnName); static Builder builder(String columnName, ColumnType type); ColumnType getType(); boolean getIsNullable(); boolean getIsAutoIncrement(); int getMaxLength(); int getPrecision(); int getScale(); byte[] serialize(); @Override boolean equals(Object o); @Override int hashCode(); String getColumnName(); @Override String toString();  }
@Test(expected = NullPointerException.class) public void testDeserializeNullSerializedSchema() { ColumnSchema.deserialize(null, TEST_COLUMN); }