@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_withDefaultEncodingAndProlog() throws IOException {
        String content = "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n" + CP1252_SAFE_XML;
        String filename = writeFile("object_prolog_cp1252.xml", content, Charset.forName("Cp1252"));
        Serializable object = getRenderer().getValueFromFile(filename, PublisherSampler.DEFAULT_ENCODING, true, cache);
        assertObject(object, "eéè€");
        Person p = (Person) object;
        assertEquals("eéè€", p.getName(), "object.name");
        Object firstCachedValue = getFirstCachedValue();
        assertEquals(content, convertLineEndingsToSystem(firstCachedValue), "cache");
    }