@Test
    public void exceptionThrownWhenTryingToOverrideTestcontainersLabels() {
        assertThat(
            catchThrowable(() -> {
                new GenericContainer<>(TestImages.ALPINE_IMAGE).withLabel("org.testcontainers.foo", "false");
            })
        )
            .as("When trying to overwrite an 'org.testcontainers' label, withLabel() throws an exception")
            .isInstanceOf(IllegalArgumentException.class);
    }
Create a container with an extra host entry and expose the content of /etc/hosts for testing.
core/src/test/java/org/testcontainers/junit/GenericContainerRuleTest.java