@Override
protected void tearDown(RepositoryFixture fixture) throws IOException {
if (fixture instanceof OakRepositoryFixture) {
OakFixture oakFixture = ((OakRepositoryFixture) fixture).getOakFixture();
if(oakFixture instanceof SegmentFixture){
SegmentFixture sf = (SegmentFixture) oakFixture;
long size = sf.getStores()[0].size();
if(sf.getBlobStoreFixtures().length > 0) {
size = sf.getBlobStoreFixtures()[0].size();
}
File indexDir = indexDirs.get(fixture);
if(indexDir != null){
size += FileUtils.sizeOfDirectory(indexDir);