@Test
public void testDefaultsToHomeDirectory() throws Exception {

    File configDirectory = facade.getConfigDirectory();
    assertTrue("the config directory should exist " + configDirectory, configDirectory.exists());
    assertTrue("the config directory should be a directory " + configDirectory, configDirectory.isDirectory());
    assertEquals("The config directory name", ".hawtio", configDirectory.getName());
    File homeDir = new File(System.getProperty("user.home", "noHomeDir"));
    File parentFile = configDirectory.getParentFile();
    assertNotNull("Should have a parent directory", parentFile);
    assertEquals("config dir should be in the home directory", homeDir.getCanonicalPath(), parentFile.getCanonicalPath());
}