@Test
public void testApplyTemplate() {

    DMRLocationResolver resolver = new DMRLocationResolver();
    DMRNodeLocation location = DMRNodeLocation.of("/one=1/two=2");
    String endpointName = "eName";
    String str = resolver.applyTemplate("hello", location, endpointName);
    Assert.assertEquals("hello", str);
    str = resolver.applyTemplate("hello %-", location, endpointName);
    Assert.assertEquals("hello 2", str);
    str = resolver.applyTemplate("hello %1 %2", location, endpointName);
    Assert.assertEquals("hello one 1", str);
    str = resolver.applyTemplate("hello %1.%2.%3.%4.[%ManagedServerName]", location, endpointName);
    Assert.assertEquals("hello one.1.two.2.[eName]", str);
}