@Test
public void convert() throws Exception {

    new PropertyUtil();
    PropertyUtil.PropertyInjector propertyInjector = new PropertyUtil.PropertyInjector();
    propertyInjector.setName("platform.${platform.primary}.trace.uri");
    Parameters<String> parameters = new ParametersMap<>();
    parameters.put("platform.primary", "raptor");
    parameters.put("platform.raptor.trace.uri", "raptor");
    parameters.put("platform.smoke.trace.uri", "smoke");
    assertEquals("platform.raptor.trace.uri", propertyInjector.replaceName(parameters));
    parameters.put("platform.primary", "smoke");
    assertEquals("platform.smoke.trace.uri", propertyInjector.replaceName(parameters));
    propertyInjector.setName("${platform.primary}");
    parameters.put("smoke", "Smoking");
    parameters.put("raptor", "Flying");
    assertEquals("smoke", propertyInjector.replaceName(parameters));
}