### Question:
GeoGigDataStore extends ContentDataStore implements DataStore { public @Override void dispose() { super.dispose(); if (closeOnDispose) { repository.close(); } } GeoGigDataStore(@NonNull Repository repository);  GeoGigDataStore(@NonNull Context context); @Override void dispose(); void setCloseOnDispose(boolean close); boolean isCloseOnDispose(); void setHead(@Nullable final String refspec); String getOrFigureOutHead(); @Nullable String getConfiguredHead(); boolean isAllowTransactions(); @Nullable String getCheckedOutBranch(); Context resolveContext(@Nullable Transaction transaction); org.opengis.feature.type.Name getDescriptorName(@NonNull NodeRef treeRef); NodeRef findTypeRef(@NonNull Name typeName, @Nullable Transaction tx); GeogigFeatureStore getFeatureStore(String typeName); @Override void createSchema(SimpleFeatureType featureType); @Override void removeSchema(Name name); @Override void removeSchema(String name); GeogigDiffFeatureSource getDiffFeatureSource(final String typeName, final String oldRoot); GeogigDiffFeatureSource getDiffFeatureSource(final String typeName, final String oldRoot,
            final ChangeType changeType); GeogigDiffFeatureSource getDiffFeatureSource(final String typeName, final String oldRoot,
            final Context oldContext, final ChangeType changeType); Optional<ObjectId> createOrUpdateIndex(String layerName, String... extraAttributes); static Optional<ObjectId> createOrUpdateIndex(Repository repository,
            @Nullable String branchOrHead, String featureTreePath, String... extraAttributes);  }### Answer:
@Test public void testDispose() { assertTrue(repo.isOpen()); dataStore.dispose(); assertFalse(repo.isOpen()); }