### Question:
AAIVnfResources { public void updateObjectVnf(GenericVnf vnf) { AAIResourceUri vnfUri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf(vnf.getVnfId())); injectionHelper.getAaiClient().update(vnfUri, aaiObjectMapper.mapVnf(vnf)); }  void createVnfandConnectServiceInstance(GenericVnf vnf, ServiceInstance serviceInstance); void createPlatformandConnectVnf(Platform platform, GenericVnf vnf); void createLineOfBusinessandConnectVnf(LineOfBusiness lineOfBusiness, GenericVnf vnf); void deleteVnf(GenericVnf vnf); void updateOrchestrationStatusVnf(GenericVnf vnf, OrchestrationStatus orchestrationStatus); void updateObjectVnf(GenericVnf vnf); Optional<org.onap.aai.domain.yang.GenericVnf> getGenericVnf(String vnfId); boolean checkInMaintFlag(String vnfId); void connectVnfToCloudRegion(GenericVnf vnf, CloudRegion cloudRegion); void connectVnfToTenant(GenericVnf vnf, CloudRegion cloudRegion); boolean checkVnfClosedLoopDisabledFlag(String vnfId); boolean checkVnfPserversLockedFlag(String vnfId); boolean checkNameInUse(String vnfName); AAIResultWrapper queryVnfWrapperById(GenericVnf vnf); Optional<Vserver> getVserver(AAIResourceUri uri);  }### Answer:
@Test public void updateObjectVnfTest() { doReturn(new org.onap.aai.domain.yang.GenericVnf()).when(MOCK_aaiObjectMapper).mapVnf(genericVnf); doNothing().when(MOCK_aaiResourcesClient).update(isA(AAIResourceUri.class), isA(org.onap.aai.domain.yang.GenericVnf.class)); aaiVnfResources.updateObjectVnf(genericVnf); verify(MOCK_aaiObjectMapper, times(1)).mapVnf(genericVnf); verify(MOCK_aaiResourcesClient, times(1)).update(isA(AAIResourceUri.class), isA(org.onap.aai.domain.yang.GenericVnf.class)); }