TableMetaData { private Map<String, ColumnMetaData> getColumns(final Collection<ColumnMetaData> columnMetaDataList) { Map<String, ColumnMetaData> result = new LinkedHashMap<>(columnMetaDataList.size(), 1); for (ColumnMetaData each : columnMetaDataList) { String lowerColumnName = each.getName().toLowerCase(); columnNames.add(lowerColumnName); result.put(lowerColumnName, each); if (each.isPrimaryKey()) { primaryKeyColumns.add(lowerColumnName); } } return Collections.synchronizedMap(result); } TableMetaData();  TableMetaData(final Collection<ColumnMetaData> columnMetaDataList, final Collection<IndexMetaData> indexMetaDataList); ColumnMetaData getColumnMetaData(final int columnIndex); int findColumnIndex(final String columnName); boolean isPrimaryKey(final int columnIndex);  }
@Test public void assertEmptyColumnsWithDefaultConstructor() { tableMetaData = new TableMetaData(); assertThat(tableMetaData.getColumns(), is(Collections.emptyMap())); }