code: public MockSecurityGroup createSecurityGroup(
              final String groupName, final String groupDescription, final String vpcId) {
  
          MockSecurityGroup ret = new MockSecurityGroup();
          ret.setGroupName(groupName);
          ret.setGroupDescription(groupDescription);
          ret.setGroupId(
                  "sg-" + UUID.randomUUID().toString().substring(0, SECURITYGROUP_ID_POSTFIX_LENGTH));
          ret.setVpcId(vpcId);
          MockIpPermissionType mockIpPermissionType = new MockIpPermissionType();
          mockIpPermissionType.setIpProtocol("-1");
          List<String> ipRanges = new ArrayList<String>();
          ipRanges.add("0.0.0.0/0");
          mockIpPermissionType.setIpRanges(ipRanges);
          List<MockIpPermissionType> mockIpPermissionTypes = new ArrayList<MockIpPermissionType>();
          mockIpPermissionTypes.add(mockIpPermissionType);
          ret.setIpPermissionsEgress(mockIpPermissionTypes);
          List<MockIpPermissionType> mockIpPermissionTypesIngress = new ArrayList<MockIpPermissionType>();
          ret.setIpPermissions(mockIpPermissionTypesIngress);
          allMockSecurityGroup.put(ret.getGroupId(), ret);
          return ret;
      }
docs: Create the mock SecurityGroup.
  @param groupName group Name.
  @param groupDescription group Description.
  @param vpcId vpc Id for Security Group.
  @return mock Security Group.