static void checkEC2SecurityGroup(EC2SecurityGroup security) {
   checkNotNull(
       security.getId(),
       "Id can be null for a SecurityGroup, but its Optional Wrapper cannot: %s",
       security);
   checkNotNull(security.getStatus(), "Status cannot be null for a SecurityGroup: %s", security);
   checkNotNull(security.getName(), "Name cannot be null for a SecurityGroup: %s", security);
   checkNotNull(security.getOwnerId(), "Name cannot be null for a SecurityGroup: %s", security);
 }
 public IterableWithMarker<SecurityGroup> expected() {
   return IterableWithMarkers.from(
       ImmutableSet.<SecurityGroup>builder()
           .add(
               SecurityGroup.builder()
                   .ec2SecurityGroup(
                       EC2SecurityGroup.builder()
                           .status("authorized")
                           .name("myec2securitygroup")
                           .ownerId("054794666394")
                           .build())
                   .description("default")
                   .ipRange(IPRange.builder().cidrIp("127.0.0.1/30").status("authorized").build())
                   .ownerId("621567473609")
                   .name("default")
                   .vpcId("vpc-1ab2c3d4")
                   .build())
           .add(
               SecurityGroup.builder()
                   .description("My new DBSecurityGroup")
                   .ipRange(
                       IPRange.builder().cidrIp("192.168.1.1/24").status("authorized").build())
                   .ownerId("621567473609")
                   .name("mydbsecuritygroup")
                   .vpcId("vpc-1ab2c3d5")
                   .build())
           .add(
               SecurityGroup.builder()
                   .description("My new DBSecurityGroup")
                   .ownerId("621567473609")
                   .name("mydbsecuritygroup4")
                   .vpcId("vpc-1ab2c3d6")
                   .build())
           .build());
 }