@Test
    public void customClasspathResourceMappingWithSelinuxTest() throws IOException {
        String line = getReaderForContainerPort80(alpineClasspathResourceSelinux).readLine();
        assertThat(line)
            .as("Resource on the classpath can be mapped using calls to withClasspathResourceMappingSelinux")
            .isEqualTo("FOOBAR");
    }
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