@Test
public void testDeployAllVirtualRouters()
        throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {

    // Prepare
    deployment.routers = new ArrayList<>();
    when(mockNw.isRedundant()).thenReturn(true);
    //this.deployment.routers.add(routerVO1);
    final RouterDeploymentDefinition deploymentUT = spy(deployment);
    doReturn(2).when(deploymentUT).getNumberOfRoutersToDeploy();
    final DomainRouterVO routerVO1 = mock(DomainRouterVO.class);
    final DomainRouterVO routerVO2 = mock(DomainRouterVO.class);
    when(mockNetworkHelper.deployRouter(deploymentUT, false))
    .thenReturn(routerVO1).thenReturn(routerVO2);
    // Execute
    deploymentUT.deployAllVirtualRouters();
    // Assert
    verify(mockRouterDao, times(1)).addRouterToGuestNetwork(routerVO1, mockNw);
    verify(mockRouterDao, times(1)).addRouterToGuestNetwork(routerVO2, mockNw);
    assertEquals("First router to deploy was not added to list of available routers",
            routerVO1, deployment.routers.get(0));
    assertEquals("Second router to deploy was not added to list of available routers",
            routerVO2, deployment.routers.get(1));
}