### Question:
GeogigFeatureSource extends ContentFeatureSource { public @Override org.opengis.feature.type.Name getName() { return getEntry().getName(); } GeogigFeatureSource(ContentEntry entry); @Override GeoGigDataStore getDataStore(); @Override ContentState getState(); @Override org.opengis.feature.type.Name getName(); @VisibleForTesting @Override boolean handleVisitor(Query query, FeatureVisitor visitor); NodeRef getTypeRef(); static final Hints.Key WALK_INFO_KEY; static final ThreadLocal<WalkInfo> WALK_INFO; }### Answer:
@Test public void testGetLocalName() { assertEquals(pointsName, pointsSource.getName().getLocalPart()); assertEquals(linesName, linesSource.getName().getLocalPart()); }
@Test public void testGetName() throws Exception { dataStore.setNamespaceURI(namespace); insertAndAdd(poly1, poly2, poly3); commit("added polygons layer"); ContentFeatureSource polySource = dataStore.getFeatureSource(polyName); NameImpl polys = new NameImpl(namespace, polyName); assertEquals(polys, polySource.getName()); assertEquals(polys, polySource.getSchema().getName()); testGetName(polys, polySource, new Query(polyName, Filter.INCLUDE, new String[] { "ip", "sp" })); }
@Test public void testGetInfo() { assertNotNull(pointsSource.getInfo()); assertNotNull(pointsSource.getInfo().getBounds()); assertNotNull(pointsSource.getInfo().getCRS()); assertEquals(pointsName, pointsSource.getInfo().getName()); assertNotNull(linesSource.getInfo()); assertNotNull(linesSource.getInfo().getBounds()); assertNotNull(linesSource.getInfo().getCRS()); assertEquals(linesName, linesSource.getInfo().getName()); }