### Question:
AAICreateResources extends AAIResource { public void createAAIProject(String projectName, String serviceInstance) { AAIResourceUri projectURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().project(projectName)); AAIResourceUri serviceInstanceURI = AAIUriFactory.createResourceUri(Types.SERVICE_INSTANCE.getFragment(serviceInstance)); getAaiClient().createIfNotExists(projectURI, Optional.empty()).connect(projectURI, serviceInstanceURI); }  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 createAAIProjectTest() { doReturn(aaiResourcesClient).when(aaiResourcesClient).createIfNotExists(isA(AAIResourceUri.class), isA(Optional.class)); doNothing().when(aaiResourcesClient).connect(isA(AAIResourceUri.class), isA(AAIResourceUri.class)); aaiCreateResources.createAAIProject(projectName, serviceInstanceId); AAIResourceUri projectURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().project(projectName)); verify(aaiResourcesClient, times(1)).createIfNotExists(projectURI, Optional.empty()); verify(aaiResourcesClient, times(1)).connect(isA(AAIResourceUri.class), isA(AAIResourceUri.class)); }