@BeforeClass
  public static void setUpClass() {
    assumeTrue(
        "To run tests, GOOGLE_CLOUD_TESTS_IN_VPCSC environment variable needs to be set to true",
        IN_VPCSC_TEST != null && IN_VPCSC_TEST.equalsIgnoreCase("true"));

    assertTrue(
        IN_VPCSC_PROJECT_ENV
            + " environment variable needs to be set to a GCP "
            + "project that is inside the VPC perimeter",
        isNotEmpty(IN_VPCSC_PROJECT));

    assertTrue(
        IN_VPCSC_HOSTNAME_ENV
            + " environment variable needs to be set to a web "
            + "application that resides inside "
            + IN_VPCSC_PROJECT,
        isNotEmpty(IN_VPCSC_HOSTNAME));

    assertTrue(
        GOOGLE_CREDENTIAL_DEFAULT_ENV
            + " environment variable needs to be set to "
            + "google application credentials that resides inside VPCSC",
        isNotEmpty(IN_VPCSC_GOOGLE_CREDENTIAL));
  }
Positive Integration Tests for VPC-SC
java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java