### Question:
AAIUriFactory { public static AAISimpleUri createResourceFromExistingURI(AAIObjectName name, URI uri) { AAIObjectType type = reverseLookup.fromName(name.typeName(), uri.toString()); return new AAISimpleUri(type, uri); }  static AAIResourceUri createResourceUri(AAIObjectType type, Object... values); static AAIResourceUri createResourceUri(AAISingleFragment fragment); static AAIResourceUri createResourceUri(AAIFluentSingleType uri); static NodesSingleUri createNodesUri(AAISingleFragment fragment); static NodesPluralUri createNodesUri(AAIPluralFragment fragment); static AAISimpleUri createResourceFromExistingURI(AAIObjectName name, URI uri); static AAISimpleUri createResourceFromParentURI(AAIResourceUri parentUri, AAISingleFragment fragment); static AAISimplePluralUri createResourceFromParentURI(AAIResourceUri parentUri, AAIPluralFragment fragment); static AAISimplePluralUri createResourceUri(AAIFluentPluralType uri); static AAISimplePluralUri createResourceUri(AAIObjectPlurals type); static AAISimplePluralUri createResourceUri(AAIObjectPlurals type, Object... values); static final AAIFluentTypeReverseLookup reverseLookup; }### Answer:
@Test public void testCreateResourceFromExistingURI() { AAIResourceUri uri = new AAISimpleUri(AAIFluentTypeBuilder.network().genericVnf("").build(), "VIP(VelocitytoIP)"); AAIResourceUri uri2 = AAIUriFactory.createResourceFromExistingURI(Types.GENERIC_VNF, uri.build()); String expected = "/network/generic-vnfs/generic-vnf/VIP%28VelocitytoIP%29"; assertEquals(expected, uri2.build().toString()); }