### Question:
TableMeta { public ColumnMeta getAutoIncreaseColumn() { for (Entry<String, ColumnMeta> entry : allColumns.entrySet()) { ColumnMeta col = entry.getValue(); if ("YES".equalsIgnoreCase(col.getIsAutoincrement())) { return col; } } return null; }  String getTableName(); void setTableName(String tableName); ColumnMeta getColumnMeta(String colName); Map<String, ColumnMeta> getAllColumns(); Map<String, IndexMeta> getAllIndexes(); ColumnMeta getAutoIncreaseColumn(); Map<String, ColumnMeta> getPrimaryKeyMap(); @SuppressWarnings("serial") List<String> getPrimaryKeyOnlyName(); List<String> getEscapePkNameList(String dbType); boolean containsPK(List<String> cols); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testGetAutoIncreaseColumn() { TableMeta tableMeta = new TableMeta(); ColumnMeta id = new ColumnMeta(); id.setIsAutoincrement("YES"); tableMeta.getAllColumns().put("id", id); Assertions.assertNotNull(tableMeta.getAutoIncreaseColumn()); tableMeta = new TableMeta(); tableMeta.getAllColumns().put("name", new ColumnMeta()); Assertions.assertNull(tableMeta.getAutoIncreaseColumn()); }