@Test
public void testResolvePath() {

    when(configurationLocatorHelper.getEnvironmentProperty("MIFOS_CONF")).thenReturn("/users/admin/.mifos");
    when(configurationLocatorHelper.getHomeProperty("question.group.folder")).thenReturn("question/groups/xmls");
    String path = configurationLocator.resolvePath("$MIFOS_CONF/${question.group.folder}/ppi/PPIIndia.xml");
    Assert.assertEquals("/users/admin/.mifos/question/groups/xmls/ppi/PPIIndia.xml", path);
    verify(configurationLocatorHelper, times(1)).getEnvironmentProperty("MIFOS_CONF");
    verify(configurationLocatorHelper, times(1)).getHomeProperty("question.group.folder");
    Assert.assertEquals("/users/admin/.mifos/question/groups/xmls/ppi/PPIIndia.xml", configurationLocator.resolvePath("/users/admin/.mifos/question/groups/xmls/ppi/PPIIndia.xml"));
}