### Question:
NetworkAdapterObjectMapper { public DeleteNetworkRequest deleteNetworkRequestMapper(RequestContext requestContext, CloudRegion cloudRegion, ServiceInstance serviceInstance, L3Network l3Network) { DeleteNetworkRequest deleteNetworkRequest = new DeleteNetworkRequest(); deleteNetworkRequest.setCloudSiteId(cloudRegion.getLcpCloudRegionId()); String messageId = getRandomUuid(); deleteNetworkRequest.setMessageId(messageId); ModelInfoNetwork modelInfoNetwork = l3Network.getModelInfoNetwork(); if (modelInfoNetwork != null) { deleteNetworkRequest.setModelCustomizationUuid(modelInfoNetwork.getModelCustomizationUUID()); } deleteNetworkRequest.setMsoRequest(createMsoRequest(requestContext, serviceInstance)); deleteNetworkRequest.setNetworkId(l3Network.getNetworkId()); if (!StringUtils.isEmpty(l3Network.getHeatStackId())) { deleteNetworkRequest.setNetworkStackId(l3Network.getHeatStackId()); } else { deleteNetworkRequest.setNetworkStackId(l3Network.getNetworkName()); } deleteNetworkRequest.setNetworkType(l3Network.getNetworkType()); deleteNetworkRequest.setSkipAAI(true); deleteNetworkRequest.setTenantId(cloudRegion.getTenantId()); deleteNetworkRequest.setNotificationUrl(createCallbackUrl("NetworkAResponse", messageId)); return deleteNetworkRequest; }  CreateNetworkRequest createNetworkRequestMapper(RequestContext requestContext, CloudRegion cloudRegion,
            OrchestrationContext orchestrationContext, ServiceInstance serviceInstance, L3Network l3Network,
            Map<String, String> userInput, String cloudRegionPo, Customer customer); DeleteNetworkRequest deleteNetworkRequestMapper(RequestContext requestContext, CloudRegion cloudRegion,
            ServiceInstance serviceInstance, L3Network l3Network); RollbackNetworkRequest createNetworkRollbackRequestMapper(RequestContext requestContext,
            CloudRegion cloudRegion, OrchestrationContext orchestrationContext, ServiceInstance serviceInstance,
            L3Network l3Network, Map<String, String> userInput, String cloudRegionPo,
            CreateNetworkResponse createNetworkResponse); UpdateNetworkRequest createNetworkUpdateRequestMapper(RequestContext requestContext, CloudRegion cloudRegion,
            OrchestrationContext orchestrationContext, ServiceInstance serviceInstance, L3Network l3Network,
            Map<String, String> userInput, Customer customer); MsoRequest createMsoRequest(RequestContext requestContext, ServiceInstance serviceInstance);  }### Answer:
@Test public void deleteNetworkRequestMapperTest() throws Exception { DeleteNetworkRequest expectedDeleteNetworkRequest = new DeleteNetworkRequest(); String messageId = "messageId"; expectedDeleteNetworkRequest.setMessageId(messageId); doReturn(messageId).when(SPY_networkAdapterObjectMapper).getRandomUuid(); ModelInfoNetwork modelInfoNetwork = new ModelInfoNetwork(); l3Network.setModelInfoNetwork(modelInfoNetwork); modelInfoNetwork.setModelCustomizationUUID("modelCustomizationUuid"); expectedDeleteNetworkRequest.setModelCustomizationUuid(modelInfoNetwork.getModelCustomizationUUID()); MsoRequest msoRequest = new MsoRequest(); msoRequest.setRequestId(requestContext.getMsoRequestId()); msoRequest.setServiceInstanceId(serviceInstance.getServiceInstanceId()); expectedDeleteNetworkRequest.setMsoRequest(msoRequest); expectedDeleteNetworkRequest.setNetworkId(l3Network.getNetworkId()); l3Network.setHeatStackId("heatStackId"); expectedDeleteNetworkRequest.setNetworkStackId(l3Network.getHeatStackId()); expectedDeleteNetworkRequest.setNetworkType(l3Network.getNetworkType()); expectedDeleteNetworkRequest.setSkipAAI(true); expectedDeleteNetworkRequest.setTenantId(cloudRegion.getTenantId()); expectedDeleteNetworkRequest.setCloudSiteId(cloudRegion.getLcpCloudRegionId()); expectedDeleteNetworkRequest.setNotificationUrl("endpoint/NetworkAResponse/messageId"); doReturn("endpoint/").when(SPY_networkAdapterObjectMapper).getEndpoint(); doReturn("messageId").when(SPY_networkAdapterObjectMapper).getRandomUuid(); DeleteNetworkRequest deleteNetworkRequest = SPY_networkAdapterObjectMapper .deleteNetworkRequestMapper(requestContext, cloudRegion, serviceInstance, l3Network); assertThat(expectedDeleteNetworkRequest, sameBeanAs(deleteNetworkRequest)); }