### Question:
AAICreateResources extends AAIResource { public boolean existsOwningEntity(String owningEntityId) { AAIResourceUri owningEntityURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().owningEntity(owningEntityId)); return getAaiClient().exists(owningEntityURI); }  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 existsOwningEntityTest() { doReturn(true).when(aaiResourcesClient).exists(isA(AAIResourceUri.class)); boolean expectedBoolean = aaiCreateResources.existsOwningEntity(owningEntityId); AAIResourceUri owningEntityURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().owningEntity(owningEntityId)); verify(aaiResourcesClient, times(1)).exists(owningEntityURI); assertTrue(expectedBoolean); }