### Question:
AAIServiceInstanceResources { public void createServiceSubscription(Customer customer) { AAIResourceUri serviceSubscriptionURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().customer(customer.getGlobalCustomerId()) .serviceSubscription(customer.getServiceSubscription().getServiceType())); org.onap.aai.domain.yang.ServiceSubscription serviceSubscription = aaiObjectMapper.mapServiceSubscription(customer.getServiceSubscription()); injectionHelper.getAaiClient().createIfNotExists(serviceSubscriptionURI, Optional.of(serviceSubscription)); }  boolean existsServiceInstance(ServiceInstance serviceInstance); void createServiceInstance(ServiceInstance serviceInstance, Customer customer); void createServiceSubscription(Customer customer); void deleteServiceInstance(ServiceInstance serviceInstance); void createProject(Project project); void createProjectandConnectServiceInstance(Project project, ServiceInstance serviceInstance); void createOwningEntity(OwningEntity owningEntity); boolean existsOwningEntity(OwningEntity owningEntity); boolean existsOwningEntityName(String owningEntityName); org.onap.aai.domain.yang.OwningEntity getOwningEntityByName(String owningEntityName); void connectOwningEntityandServiceInstance(OwningEntity owningEntity, ServiceInstance serviceInstance); void createOwningEntityandConnectServiceInstance(OwningEntity owningEntity,
            ServiceInstance serviceInstance); void updateOrchestrationStatusServiceInstance(ServiceInstance serviceInstance,
            OrchestrationStatus orchestrationStatus); void updateServiceInstance(ServiceInstance serviceInstance); boolean checkInstanceServiceNameInUse(ServiceInstance serviceInstance);  }### Answer:
@Test public void createServiceSubscriptionTest() { serviceSubscription.setServiceType("IP-FLEX"); customer.setServiceSubscription(serviceSubscription); doReturn(new org.onap.aai.domain.yang.ServiceSubscription()).when(MOCK_aaiObjectMapper) .mapServiceSubscription(customer.getServiceSubscription()); aaiServiceInstanceResources.createServiceSubscription(customer); verify(MOCK_aaiResourcesClient, times(1)).createIfNotExists(any(AAIResourceUri.class), any(Optional.class)); }