}
@Test
public void testCreateProviderToPhysicalNetworkSuccess() {
NetworkService networkService = Mockito.mock(NetworkService.class);
addNetworkServiceProviderCmd._networkService = networkService;
PhysicalNetworkServiceProvider physicalNetworkServiceProvider = Mockito.mock(PhysicalNetworkServiceProvider.class);
Mockito.when(networkService.addProviderToPhysicalNetwork(Matchers.anyLong(), Matchers.anyString(), Matchers.anyLong(), Matchers.anyList())).thenReturn(
physicalNetworkServiceProvider);
try {
addNetworkServiceProviderCmd.create();
} catch (ResourceAllocationException e) {