### Question:
AAIDeleteTasks { public void deleteNetwork(BuildingBlockExecution execution) throws Exception { try { L3Network l3network = extractPojosForBB.extractByKey(execution, ResourceKey.NETWORK_ID); aaiNetworkResources.deleteNetwork(l3network); execution.setVariable("isRollbackNeeded", true); } catch (Exception ex) { logger.error("Exception occurred in AAIDeleteTasks deleteNetwork process", ex); exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex); } }  void deleteVfModule(BuildingBlockExecution execution); void deleteVnf(BuildingBlockExecution execution); void deleteServiceInstance(BuildingBlockExecution execution); void deleteNetwork(BuildingBlockExecution execution); void deleteCollection(BuildingBlockExecution execution); void deleteInstanceGroup(BuildingBlockExecution execution); void deleteVolumeGroup(BuildingBlockExecution execution); void deleteConfiguration(BuildingBlockExecution execution); void deleteInstanceGroupVnf(BuildingBlockExecution execution); void deleteNetworkPolicies(BuildingBlockExecution execution);  }### Answer:
@Test public void deleteNetworkTest() throws Exception { doNothing().when(aaiNetworkResources).deleteNetwork(network); aaiDeleteTasks.deleteNetwork(execution); verify(aaiNetworkResources, times(1)).deleteNetwork(network); }