@@ -0,0 +1,2136 @@
+/**%0A * Copyright (C) 2011 Akiban Technologies Inc.%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License, version 3,%0A * as published by the Free Software Foundation.%0A *%0A * This program 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%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program.  If not, see http://www.gnu.org/licenses.%0A */%0A%0Apackage com.akiban.server.store.statistics;%0A%0Aimport com.akiban.sql.pg.PostgresServerFilesITBase;%0Aimport static com.akiban.sql.TestBase.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport static junit.framework.Assert.*;%0A%0Aimport java.util.*;%0Aimport java.io.File;%0A%0Apublic class PersistitStoreIndexStatisticsIT extends PostgresServerFilesITBase%0A%7B%0A    public static final File RESOURCE_DIR = %0A        new File(%22src/test/resources/%22%0A                 + IndexStatisticsYamlTest.class.getPackage().getName().replace('.', '/'));%0A    public static final File YAML_FILE = new File(RESOURCE_DIR, %22stats.yaml%22);%0A    %0A    private IndexStatisticsService service;%0A%0A    @Before%0A    public void loadDatabase() throws Exception %7B%0A        loadDatabase(RESOURCE_DIR);%0A    %7D%0A%0A    @Before%0A    public void getService() throws Exception %7B%0A        service = serviceManager().getServiceByClass(IndexStatisticsService.class);%0A    %7D%0A%0A    @Override%0A    public void openTheConnection() throws Exception %7B%0A        // TODO: Test class modularity isn't right.%0A    %7D%0A    %0A    @Test%0A    public void testLoadDump() throws Exception %7B%0A        service.loadIndexStatistics(session(), %22user%22, YAML_FILE);%0A        File tempFile = File.createTempFile(%22stats%22, %22yaml%22);%0A        service.dumpIndexStatistics(session(), %22user%22, tempFile);%0A        assertEquals(%22dump matches load%22, %0A                     fileContents(YAML_FILE).replace(%22%5Cr%22, %22%22),%0A                     fileContents(tempFile).replace(%22%5Cr%22, %22%22));%0A    %7D%0A%0A%7D%0A

Add an IT for Persistit storage.