### Question:
AwsNetworkView { public String getExistingVpcCidr() { return network.getStringParameter(VPC_CIDR); } AwsNetworkView(Network network); boolean isExistingVPC(); boolean isExistingSubnet(); boolean isExistingIGW(); String getExistingSubnet(); boolean isSubnetList(); List<String> getSubnetList(); String getExistingIgw(); String getExistingVpc(); String getExistingVpcCidr(); List<String> getExistingVpcCidrs(); static final String VPC_ID; static final String REGION; }### Answer:
@Test public void testVpcCidr() { when(network.getStringParameter(VPC_CIDR)).thenReturn("0.1.2.3/24"); assertEquals("0.1.2.3/24", underTest.getExistingVpcCidr()); }
@Test public void testNoVpcCidr() { when(network.getStringParameter(VPC_ID)).thenReturn(null); assertNull(underTest.getExistingVpcCidr()); }