### Question:
SDNCUnassignTasks extends AbstractSDNCTask { public void unassignNetwork(BuildingBlockExecution execution) throws Exception { try { GeneralBuildingBlock gBBInput = execution.getGeneralBuildingBlock(); L3Network network = extractPojosForBB.extractByKey(execution, ResourceKey.NETWORK_ID); ServiceInstance serviceInstance = extractPojosForBB.extractByKey(execution, ResourceKey.SERVICE_INSTANCE_ID); Customer customer = gBBInput.getCustomer(); RequestContext requestContext = gBBInput.getRequestContext(); CloudRegion cloudRegion = gBBInput.getCloudRegion(); String cloudRegionSdnc = execution.getVariable("cloudRegionSdnc"); cloudRegion.setLcpCloudRegionId(cloudRegionSdnc); GenericResourceApiNetworkOperationInformation req = sdncNetworkResources.unassignNetwork(network, serviceInstance, customer, requestContext, cloudRegion); SDNCRequest sdncRequest = new SDNCRequest(); sdncRequest.setSDNCPayload(req); sdncRequest.setTopology(SDNCTopology.NETWORK); execution.setVariable(SDNC_REQUEST, sdncRequest); } catch (Exception ex) { logger.error("Exception occurred in SDNCUnassignTasks unassignNetwork", ex); exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex); } }  void unassignServiceInstance(BuildingBlockExecution execution); void unassignVfModule(BuildingBlockExecution execution); void unassignVnf(BuildingBlockExecution execution); void unassignNetwork(BuildingBlockExecution execution); static final String SDNC_REQUEST; }### Answer:
@Test public void unassignNetworkTest() throws Exception { String cloudRegionSdnc = "AAIAIC25"; cloudRegion.setCloudRegionVersion("2.5"); execution.setVariable("cloudRegionSdnc", cloudRegionSdnc); doReturn(new GenericResourceApiNetworkOperationInformation()).when(sdncNetworkResources) .unassignNetwork(network, serviceInstance, customer, requestContext, cloudRegion); assertNotEquals(cloudRegionSdnc, cloudRegion.getLcpCloudRegionId()); sdncUnassignTasks.unassignNetwork(execution); verify(sdncNetworkResources, times(1)).unassignNetwork(network, serviceInstance, customer, requestContext, cloudRegion); assertEquals(cloudRegionSdnc, cloudRegion.getLcpCloudRegionId()); SDNCRequest sdncRequest = execution.getVariable("SDNCRequest"); assertEquals(SDNCTopology.NETWORK, sdncRequest.getTopology()); }