RouterDeploymentDefinition { public boolean isRedundant() { return guestNetwork.isRedundant(); } protected  RouterDeploymentDefinition(final Network guestNetwork, final DeployDestination dest,
                                         final Account owner, final Map<Param, Object> params); Long getServiceOfferingId(); Vpc getVpc(); Network getGuestNetwork(); DeployDestination getDest(); Account getOwner(); Map<Param, Object> getParams(); boolean isRedundant(); DeploymentPlan getPlan(); boolean isVpcRouter(); Pod getPod(); Long getPodId(); List<DomainRouterVO> getRouters(); VirtualRouterProvider getVirtualProvider(); boolean isBasic(); boolean isPublicNetwork(); PublicIp getSourceNatIP(); boolean needsPublicNic(); boolean hasSourceNatService(); List<DomainRouterVO> deployVirtualRouter();  }
@Test public void testRedundancyProperty() { when(mockNw.isRedundant()).thenReturn(true); final RouterDeploymentDefinition deployment = builder.create() .setGuestNetwork(mockNw) .setDeployDestination(mockDestination) .build(); assertTrue("The builder ignored redundancy from its inner network", deployment.isRedundant()); when(mockNw.isRedundant()).thenReturn(false); assertFalse("The builder ignored redundancy from its inner network", deployment.isRedundant()); }