@Test
public void testAbsolutize() throws Exception {

    JMXLocationResolver resolver = new JMXLocationResolver();
    JMXNodeLocation abs;
    abs = resolver.absolutize(null, new JMXNodeLocation("domain:one=1,two=2"));
    Assert.assertEquals("domain:one=1,two=2", abs.toString());
    abs = resolver.absolutize(new JMXNodeLocation("domain:one=1,two=2"), (JMXNodeLocation) null);
    Assert.assertEquals("domain:one=1,two=2", abs.toString());
    // absolutize doesn't really do anything for JMX locations - always returns location if its not null
    abs = resolver.absolutize(new JMXNodeLocation("domain:foo=bar"), new JMXNodeLocation("domain:one=1,two=2"));
    Assert.assertEquals("domain:one=1,two=2", abs.toString());
}