### Question:
Id { public Id resolveLocalId(String uid) throws JsonResourceException { if (null == uid) { return new Id(systemName, objectType); } else { return new Id(systemName, objectType, uid); } } Id(String systemName, String objectType);  Id(String systemName, String objectType, String localId); @SuppressWarnings("fallthrough")  Id(String id); String getLocalId(); String getObjectType(); String getSystemName(); Id expectObjectId(); Id resolveLocalId(String uid); URI getId(); URI getQualifiedId(); @Override String toString(); static String escapeUid(String uid); static String unescapeUid(String uid); static final String SYSTEM_BASE; static final String CHARACTER_ENCODING_UTF_8; }### Answer:
@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: }