### Question:
AAIUriFactory { public static AAIResourceUri createResourceUri(AAIObjectType type, Object... values) { return new AAISimpleUri(type, values); }  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 testCreateResourceUri() { AAIResourceUri uri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf("VIP(VelocitytoIP)")); String expected = "/network/generic-vnfs/generic-vnf/VIP%28VelocitytoIP%29"; assertEquals(expected, uri.build().toString()); }
@Test public void testCreateResourceURIForPluralsWithValues() { AAIPluralResourceUri uri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business() .customer("customerId").serviceSubscription("serviceType").serviceInstances()); String expected = "/business/customers/customer/customerId/service-subscriptions/service-subscription/serviceType/service-instances"; assertEquals(expected, uri.build().toString()); }
@Test public void testCreateResourceURIForPluralsWithNoValues() { AAIPluralResourceUri uri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().customers()); String expected = "/business/customers"; assertEquals(expected, uri.build().toString()); }