public class ConfigHelperTest {
@Test
public void testConfigHelperFindLocalDirInPath() throws Exception {
// Setup
Config testConfig = TestConfigUtil.createTestLocalConfig();
File startingPath = testConfig.getLocalDir();
// Run
File actualLocalDir = ConfigHelper.findLocalDirInPath(startingPath);
// Test
assertNotNull(actualLocalDir);
assertEquals(testConfig.getLocalDir(), actualLocalDir.getCanonicalFile());
// Tear down
TestConfigUtil.deleteTestLocalConfigAndData(testConfig);
}