public Storage(int clusterID, String token, String metaDir) {
        this.clusterID = clusterID;
        this.token = token;
        this.metaDir = metaDir;
    }
@Test
    public void testStorage() throws Exception {
        mkdir();
        addFiles(0, 10);

        Storage storage = new Storage("storageTestDir");
        Assert.assertEquals(0, storage.getImageJournalId());

        Assert.assertTrue(storage.getCurrentImageFile().equals(new File("storageTestDir/image.0")));
        Assert.assertTrue(storage.getImageFile(0).equals(new File("storageTestDir/image.0")));
        Assert.assertTrue(Storage.getImageFile(new File("storageTestDir"), 0)
                .equals(new File("storageTestDir/image.0")));

        Assert.assertTrue(storage.getVersionFile().equals(new File("storageTestDir/VERSION")));

        storage.setImageJournalId(100);
        Assert.assertEquals(100, storage.getImageJournalId());

        deleteDir();
    }