public Embed embed(byte[] bytes, ResourceType resourceType) {
        if (embeds == null) {
            embeds = new ArrayList();
        }
        Embed embed = saveToFileAndCreateEmbed(bytes, resourceType);
        embeds.add(embed);
        return embed;
    }
@Test
    void testEmbed() {
        run(
                "karate.embed('<h1>hello world</h1>', 'text/html')"
        );
        List<StepResult> results = sr.result.getStepResults();
        assertEquals(1, results.size());
        List<Embed> embeds = results.get(0).getEmbeds();
        assertEquals(1, embeds.size());
        assertEquals(embeds.get(0).getAsString(), "<h1>hello world</h1>");
        assertEquals(embeds.get(0).getResourceType(), ResourceType.HTML);
    }