@Test
public void testResolveLocalId() throws Exception {

    Id actual = new Id("system/xml/account/");
    String expected = "xml/account/simple";
    Assert.assertEquals(actual.resolveLocalId("simple").getId().toString(), expected);
    expected = "xml/account/http%3A%2F%2Fopenidm.forgerock.org%2Fopenidm%2Fmanaged%2Fuser%2F480ab4b0-764f-11e0-a1f0-0800200c9a66";
    Assert.assertEquals(actual.resolveLocalId("http://openidm.forgerock.org/openidm/managed/user/480ab4b0-764f-11e0-a1f0-0800200c9a66").getId().toString(), expected);
}