@@ -0,0 +1,975 @@
+package org.broadinstitute.sting.utils;%0A%0Aimport org.broadinstitute.sting.BaseTest;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.junit.Assert;%0A%0Aimport java.io.File;%0A%0Apublic class PathUtilsTest extends BaseTest %7B%0A    @BeforeClass%0A    public static void init() %7B %7D%0A%0A    /**%0A     * Tests that we can successfully refresh a volume%0A     */%0A    @Test%0A    public void testRefreshVolume() %7B%0A        logger.warn(%22Executing testRefreshVolume%22);%0A%0A        Assert.assertTrue(successfullyRefreshedVolume(System.getProperty(%22java.io.tmpdir%22)));%0A        Assert.assertFalse(successfullyRefreshedVolume(%22/a/made/up/file.txt%22));%0A    %7D%0A%0A    private boolean successfullyRefreshedVolume(String filename) %7B%0A        boolean result = true;%0A%0A        try %7B%0A            PathUtils.refreshVolume(new File(filename));%0A        %7D catch (StingException e) %7B%0A            result = false;%0A        %7D%0A%0A        logger.warn(filename + %22 is accessible : %22 + result);%0A%0A        return result;%0A    %7D%0A%7D%0A

Test class for PathUtils.