@Test
public void testExtractDataSourceNames() throws InvalidMapBoxStyleException {

    // Assert that the default size is 0
    Assert.assertEquals(0, DataSourceConfig.extractDataSourceNames(new ArrayList<DataSourceConfig>()).length);
    ArrayList<DataSourceConfig> configs1 = new ArrayList<>();
    int size1 = 6;
    for (int i = 0; i < size1; i++) {
        configs1.add(new DataSourceConfig(String.valueOf(i)));
    }
    // Assert the size of the generated list
    String[] names1 = DataSourceConfig.extractDataSourceNames(configs1);
    Assert.assertEquals(size1, names1.length);
    // Assert the order of names
    for (int i = 0; i < names1.length; i++) {
        Assert.assertEquals(String.valueOf(i), names1[i]);
    }
}