    @Test
    public void testResolveLogPathReferences() {

        // GIVEN
        Telemetry telemetry = new Telemetry();
        Map<String, Object> fluentAttributes = new HashMap<>();
        fluentAttributes.put(SERVICE_LOG_FOLDER_PREFIX, "/var/log");
        fluentAttributes.put(SERVER_LOG_FOLDER_PREFIX, "/custom/log");
        fluentAttributes.put(AGENT_LOG_FOLDER_PREFIX, "/grid/0/log");
        telemetry.setFluentAttributes(fluentAttributes);
        List<VmLog> vmLogs = new ArrayList<>();
        VmLog log1 = new VmLog();
        log1.setPath("${serviceLogFolderPrefix}/mylog.log");
        VmLog log2 = new VmLog();
        log2.setPath("${agentLogFolderPrefix}/*");
        VmLog log3 = new VmLog();
        log3.setPath("/my/path${serverLogFolderPrefix}/*");
        vmLogs.add(log1);
        vmLogs.add(log2);
        vmLogs.add(log3);
        // WHEN
        underTest.resolveLogPathReferences(telemetry, vmLogs);
        // THEN
        assertEquals("/var/log/mylog.log", vmLogs.get(0).getPath());
        assertEquals("/grid/0/log/*", vmLogs.get(1).getPath());
        assertEquals("/my/path/custom/log/*", vmLogs.get(2).getPath());

    }