### Question:
AAICreateResources extends AAIResource { public void createAAIServiceInstance(String globalCustomerId, String serviceType, String serviceInstanceId) { AAIResourceUri serviceInstanceURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business() .customer(globalCustomerId).serviceSubscription(serviceType).serviceInstance(serviceInstanceId)); getAaiClient().createIfNotExists(serviceInstanceURI, Optional.empty()); }  void createAAIProject(String projectName, String serviceInstance); void createAAIOwningEntity(String owningEntityId, String owningEntityName, String serviceInstance); boolean existsOwningEntity(String owningEntityId); void connectOwningEntityandServiceInstance(String owningEntityId, String serviceInstance); void createAAIPlatform(String platformName, String vnfId); void createAAILineOfBusiness(String lineOfBusiness, String vnfId); void createAAIServiceInstance(String globalCustomerId, String serviceType, String serviceInstanceId); Optional<GenericVnf> getVnfInstance(String vnfId);  }### Answer:
@Test public void createAAIServiceInstanceTest() { doReturn(aaiResourcesClient).when(aaiResourcesClient).createIfNotExists(isA(AAIResourceUri.class), isA(Optional.class)); aaiCreateResources.createAAIServiceInstance(globalCustomerId, serviceType, serviceInstanceId); AAIResourceUri serviceInstanceURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business() .customer(globalCustomerId).serviceSubscription(serviceType).serviceInstance(serviceInstanceId)); verify(aaiResourcesClient, times(1)).createIfNotExists(serviceInstanceURI, Optional.empty()); }