@Test
public void testGetConfigurationDirectory() {

    // stubbing
    when(file.exists()).thenReturn(true);
    when(configurationLocatorHelper.getFile(EXPECTED_PATH)).thenReturn(file);
    when(configurationLocatorHelper.getHomeProperty("user.home")).thenReturn("/Users/caitie");
    // exercise test
    String configurationDirectory = configurationLocator.getConfigurationDirectory();
    // verification
    Assert.assertNotNull(configurationDirectory);
    Assert.assertEquals(EXPECTED_PATH, configurationDirectory);
}