### Question:
NetworkAdapterResources { public Optional<DeleteNetworkResponse> deleteNetwork(RequestContext requestContext, CloudRegion cloudRegion, ServiceInstance serviceInstance, L3Network l3Network) throws UnsupportedEncodingException, NetworkAdapterClientException { DeleteNetworkRequest deleteNetworkRequest = networkAdapterObjectMapper .deleteNetworkRequestMapper(requestContext, cloudRegion, serviceInstance, l3Network); return Optional.of(networkAdapterClient.deleteNetwork(l3Network.getNetworkId(), deleteNetworkRequest)); }  Optional<CreateNetworkResponse> createNetwork(RequestContext requestContext, CloudRegion cloudRegion,
            OrchestrationContext orchestrationContext, ServiceInstance serviceInstance, L3Network l3Network,
            Map<String, String> userInput, String cloudRegionPo, Customer customer); Optional<RollbackNetworkResponse> rollbackCreateNetwork(RequestContext requestContext,
            CloudRegion cloudRegion, OrchestrationContext orchestrationContext, ServiceInstance serviceInstance,
            L3Network l3Network, Map<String, String> userInput, String cloudRegionPo,
            CreateNetworkResponse createNetworkResponse); Optional<UpdateNetworkResponse> updateNetwork(RequestContext requestContext, CloudRegion cloudRegion,
            OrchestrationContext orchestrationContext, ServiceInstance serviceInstance, L3Network l3Network,
            Map<String, String> userInput, Customer customer); Optional<DeleteNetworkResponse> deleteNetwork(RequestContext requestContext, CloudRegion cloudRegion,
            ServiceInstance serviceInstance, L3Network l3Network); Optional<Response> createNetworkAsync(CreateNetworkRequest createNetworkRequest); Optional<Response> deleteNetworkAsync(DeleteNetworkRequest deleteNetworkRequest); Optional<Response> updateNetworkAsync(UpdateNetworkRequest updateNetworkRequest); Optional<RollbackNetworkResponse> rollbackCreateNetwork(String networkId,
            RollbackNetworkRequest rollbackNetworkRequest); Optional<UpdateNetworkResponse> updateNetwork(UpdateNetworkRequest updateNetworkRequest); Optional<DeleteNetworkResponse> deleteNetwork(DeleteNetworkRequest deleteNetworkRequest);  }### Answer:
@Test public void deleteNetwork_DeleteAction_Test() throws UnsupportedEncodingException, NetworkAdapterClientException { DeleteNetworkRequest deleteNetworkRequest = new DeleteNetworkRequest(); doReturn(deleteNetworkRequest).when(MOCK_networkAdapterObjectMapper).deleteNetworkRequestMapper(requestContext, cloudRegion, serviceInstance, l3Network); DeleteNetworkResponse expectedDeleteNetworkResponse = new DeleteNetworkResponse(); doReturn(expectedDeleteNetworkResponse).when(MOCK_networkAdapterClient).deleteNetwork(l3Network.getNetworkId(), deleteNetworkRequest); Optional<DeleteNetworkResponse> actualODeleteNetworkResponse = networkAdapterResources.deleteNetwork(requestContext, cloudRegion, serviceInstance, l3Network); DeleteNetworkResponse actualDeleteNetworkResponse = actualODeleteNetworkResponse.get(); verify(MOCK_networkAdapterObjectMapper, times(1)).deleteNetworkRequestMapper(requestContext, cloudRegion, serviceInstance, l3Network); verify(MOCK_networkAdapterClient, times(1)).deleteNetwork(l3Network.getNetworkId(), deleteNetworkRequest); assertThat(expectedDeleteNetworkResponse, Matchers.sameBeanAs(actualDeleteNetworkResponse)); }