@Override
    public Serializable getValueFromFile(String filename, String encoding, boolean hasVariable, Cache<Object,Object> cache) {
        Serializable value;
        if (hasVariable) {
            value = getInterpretedContent(filename, encoding, hasVariable, cache);
        } else {
            value = (Serializable) cache.get(filename, p -> getContent(filename));
        }

        return value;
    }
@Test
    public void getValueFromFile_withDefaultEncodingAndNoProlog() throws IOException {
        String content =
                "<org.apache.jmeter.protocol.jms.sampler.render.Person><name>eéè€</name></org.apache.jmeter.protocol.jms.sampler.render.Person>";
        String filename = writeFile("object_utf8.xml", content, StandardCharsets.UTF_8);
        Serializable object = getRenderer().getValueFromFile(filename, PublisherSampler.DEFAULT_ENCODING, true, cache);
        assertObject(object, "eéè€");
        assertEquals(CP1252_SAFE_XML, getFirstCachedValue(), "cache");

    }