@Test
public void getDefaultNetworkForAdvancedNetworkingWithSecurityGroupdsTest() {

    DataCenterVO dc = Mockito.mock(DataCenterVO.class);
    List<NetworkVO> networks = new ArrayList<>();
    NetworkVO networkVo = Mockito.mock(NetworkVO.class);
    networks.add(networkVo);
    Mockito.doReturn(networks).when(networkDao).listByZoneSecurityGroup(Mockito.anyLong());
    NetworkVO result = spy.getDefaultNetworkForAdvancedNetworkingWithSecurityGroupds(0l, dc);
    Mockito.verify(networkDao).listByZoneSecurityGroup(Mockito.anyLong());
    Assert.assertEquals(networkVo, result);
}