// Path: sonar-plugin-agent/src/test/java/jetbrains/buildserver/sonarplugin/TestTools.java
// public static File writeTo(String prefix, String content) {
//     return writeTo(prefix, content, ".tmp", null);
// }


import okhttp3.tls.HeldCertificate;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.Network;
import org.testcontainers.utility.DockerImageName;
import org.testcontainers.utility.MountableFile;
import java.io.File;
import java.net.InetAddress;
import java.net.URL;
import java.net.UnknownHostException;
import static jetbrains.buildserver.sonarplugin.TestTools.writeTo;
package jetbrains.buildserver.sonarplugin;




public class AbstractSonarQubeTest {
    static final GenericContainer SONAR_QUBE_CONTAINER;
    static final GenericContainer NGINX_CONTAINER;
//    static final GenericContainer SONAR_SCANNER_CLI_CONTAINER;

    static {
        String localhost = null;
        File certificate = null;
        File privateKey = null;
        File nginxConf = null;
        File sampleFile;
        String networkAlias = "sonarqube";
        try {
            localhost = InetAddress.getByName("localhost").getCanonicalHostName();
            HeldCertificate localhostCertificate = new HeldCertificate.Builder()
                    .addSubjectAlternativeName(localhost)
                    .build();
// Path: sonar-plugin-agent/src/test/java/jetbrains/buildserver/sonarplugin/TestTools.java
// public static File writeTo(String prefix, String content) {
//     return writeTo(prefix, content, ".tmp", null);
// }


// Path: sonar-plugin-agent/src/test/java/jetbrains/buildserver/sonarplugin/AbstractSonarQubeTest.java
import okhttp3.tls.HeldCertificate;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.Network;
import org.testcontainers.utility.DockerImageName;
import org.testcontainers.utility.MountableFile;
import java.io.File;
import java.net.InetAddress;
import java.net.URL;
import java.net.UnknownHostException;
import static jetbrains.buildserver.sonarplugin.TestTools.writeTo;

package jetbrains.buildserver.sonarplugin;




public class AbstractSonarQubeTest {
    static final GenericContainer SONAR_QUBE_CONTAINER;
    static final GenericContainer NGINX_CONTAINER;
//    static final GenericContainer SONAR_SCANNER_CLI_CONTAINER;

    static {
        String localhost = null;
        File certificate = null;
        File privateKey = null;
        File nginxConf = null;
        File sampleFile;
        String networkAlias = "sonarqube";
        try {
            localhost = InetAddress.getByName("localhost").getCanonicalHostName();
            HeldCertificate localhostCertificate = new HeldCertificate.Builder()
                    .addSubjectAlternativeName(localhost)
                    .build();
            certificate = writeTo("certificate", localhostCertificate.certificatePem());