@Test
public void testCalculatePathToFile() {

    File fromFile = new File("/basedir/subDir1/foo.css");
    File toFile = new File("/basedir/subDir2/foo.css");
    String path = ThemeBuilderUtils.calculatePathToFile(fromFile, toFile);
    Assert.assertEquals("Path incorrect for up one dir", "../subDir2/", path);
    fromFile = new File("/basedir/subDir1/foo.css");
    toFile = new File("/basedir/subDir1/foo.css");
    path = ThemeBuilderUtils.calculatePathToFile(fromFile, toFile);
    Assert.assertEquals("Path incorrect for same dir", "", path);
    fromFile = new File("/basedir/dir1/subDir1/foo.css");
    toFile = new File("/basedir/dir2/subDir2/foo.css");
    path = ThemeBuilderUtils.calculatePathToFile(fromFile, toFile);
    Assert.assertEquals("Path incorrect for up two dir", "../../dir2/subDir2/", path);
    fromFile = new File("/basedir/subDir1/foo.css");
    toFile = new File("/basedir/subDir1/moreDir/foo.css");
    path = ThemeBuilderUtils.calculatePathToFile(fromFile, toFile);
    Assert.assertEquals("Path incorrect for sub dir", "moreDir/", path);
}