/*
 *    GeoTools - The Open Source Java GIS Toolkit
 *    http://geotools.org
 *
 *    (C) 2002-2009, Open Source Geospatial Foundation (OSGeo)
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation;
 *    version 2.1 of the License.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 */
package org.geotools.jdbc;

import org.geotools.data.FeatureSource;
import org.geotools.data.Query;
import org.geotools.feature.FeatureCollection;
import org.geotools.feature.FeatureIterator;
import org.geotools.geometry.jts.ReferencedEnvelope;

/*
 *    GeoTools - The Open Source Java GIS Toolkit
 *    http://geotools.org
 *
 *    (C) 2002-2008, Open Source Geospatial Foundation (OSGeo)
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation;
 *    version 2.1 of the License.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 */

public abstract class JDBCEmptyOnlineTest extends JDBCTestSupport {

    @Override
    protected abstract JDBCEmptyTestSetup createTestSetup();

    public void testFeatureSource() throws Exception {

        FeatureSource fs = dataStore.getFeatureSource(tname("empty"));
        assertNotNull(fs);

        ReferencedEnvelope bounds = fs.getBounds();
        assertTrue(bounds.isNull());

        int count = fs.getCount(Query.ALL);
        assertEquals(0, count);
    }

    public void testFeatureCollection() throws Exception {
        FeatureSource fs = dataStore.getFeatureSource(tname("empty"));
        FeatureCollection features = fs.getFeatures();

        assertTrue(features.getBounds().isNull());
        assertEquals(0, features.size());

        try (FeatureIterator i = features.features()) {
            assertFalse(i.hasNext());
        }
    }
}

@@ -890,656 +890,8 @@
 e;%0A%0A
-/*%0A *    GeoTools - The Open Source Java GIS Toolkit%0A *    http://geotools.org%0A *%0A *    (C) 2002-2008, Open Source Geospatial Foundation (OSGeo)%0A *%0A *    This library is free software; you can redistribute it and/or%0A *    modify it under the terms of the GNU Lesser General Public%0A *    License as published by the Free Software Foundation;%0A *    version 2.1 of the License.%0A *%0A *    This library is distributed in the hope that it will be useful,%0A *    but WITHOUT ANY WARRANTY; without even the implied warranty of%0A *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A *    Lesser General Public License for more details.%0A */%0A%0A
 publ

Remove extra copy of the license comment in JDBCEmptyOnlineTest.java