### Question:
GeoGigDataStore extends ContentDataStore implements DataStore { @Override public void dispose() { super.dispose(); geogig.close(); } GeoGigDataStore(GeoGIG geogig); @Override void dispose(); @Deprecated void setBranch(@Nullable final String branchName); void setHead(@Nullable final String refspec); @Deprecated String getOrFigureOutBranch(); String getOrFigureOutHead(); GeoGIG getGeogig(); @Deprecated String getConfiguredBranch(); @Nullable String getConfiguredHead(); boolean isAllowTransactions(); @Nullable String getCheckedOutBranch(); ImmutableList<String> getAvailableBranches(); Context getCommandLocator(@Nullable Transaction transaction); Name getDescriptorName(NodeRef treeRef); NodeRef findTypeRef(Name typeName, @Nullable Transaction tx); @Override void createSchema(SimpleFeatureType featureType); void removeSchema(Name name); void removeSchema(String name); SimpleFeatureSource getDiffFeatureSource(final String typeName, final String oldRoot,
            final ChangeType changeType);  }### Answer:
@Test public void testDispose() { assertTrue(geogig.isOpen()); dataStore.dispose(); assertFalse(geogig.isOpen()); }