public static Container createContainer(
            String name,
            String containerImage,
            List<String> args,
            SecurityContext securityContext,
            ResourceRequirements resources,
            List<EnvVar> envVars,
            List<ContainerPort> ports,
            List<VolumeMount> volumeMounts,
            Probe livenessProbe,
            Probe readinessProbe,
            ImagePullPolicy imagePullPolicy
    )   {
        return createContainer(
                name,
                containerImage,
                args,
                securityContext,
                resources,
                envVars,
                ports,
                volumeMounts,
                livenessProbe,
                readinessProbe,
                null,
                imagePullPolicy,
                null
        );
    }
@Test
    public void createContainer()   {
        Container cont = ContainerUtils.createContainer(
                "my-name",
                "my-image:latest",
                List.of("/startup.sh", "--port=8443"),
                new SecurityContextBuilder().withRunAsUser(1874L).build(),
                new ResourceRequirementsBuilder().withRequests(Map.of("memory", new Quantity("1Gi"), "cpu", new Quantity("1000m"))).build(),
                List.of(ContainerUtils.createEnvVar("VAR_1", "value1")),
                List.of(ContainerUtils.createContainerPort("my-port", 8443)),
                List.of(VolumeUtils.createVolumeMount("my-volume", "/my-volume")),
                ProbeUtils.execProbe(new Probe(), List.of("/liveness.sh")),
                ProbeUtils.execProbe(new Probe(), List.of("/readiness.sh")),
                null
        );

        assertThat(cont.getName(), is("my-name"));
        assertThat(cont.getImage(), is("my-image:latest"));
        assertThat(cont.getArgs().size(), is(2));
        assertThat(cont.getArgs().get(0), is("/startup.sh"));
        assertThat(cont.getArgs().get(1), is("--port=8443"));
        assertThat(cont.getSecurityContext().getRunAsUser(), is(1874L));
        assertThat(cont.getResources().getRequests().get("memory"), is(new Quantity("1Gi")));
        assertThat(cont.getResources().getRequests().get("cpu"), is(new Quantity("1000m")));
        assertThat(cont.getResources().getLimits(), is(Map.of()));
        assertThat(cont.getEnv().size(), is(1));
        assertThat(cont.getEnv().get(0).getName(), is("VAR_1"));
        assertThat(cont.getEnv().get(0).getValue(), is("value1"));
        assertThat(cont.getPorts().size(), is(1));
        assertThat(cont.getPorts().get(0).getName(), is("my-port"));
        assertThat(cont.getPorts().get(0).getContainerPort(), is(8443));
        assertThat(cont.getVolumeMounts().size(), is(1));
        assertThat(cont.getVolumeMounts().get(0).getName(), is("my-volume"));
        assertThat(cont.getVolumeMounts().get(0).getMountPath(), is("/my-volume"));
        assertThat(cont.getLivenessProbe().getExec().getCommand(), is(List.of("/liveness.sh")));
        assertThat(cont.getReadinessProbe().getExec().getCommand(), is(List.of("/readiness.sh")));
        assertThat(cont.getStartupProbe(), is(nullValue()));
        assertThat(cont.getImagePullPolicy(), is("Always"));
        assertThat(cont.getLifecycle(), is(nullValue()));
    }