static Document replacePlaceholders(Document doc, ExpressionEvalContext evalContext, JetSqlRow inputRow,
                                        String[] externalNames, boolean forRow) {
        Object[] values = inputRow.getValues();
        return replacePlaceholders(doc, evalContext, values, externalNames, forRow);
    }
@Test
    public void replaces_dynamic_param() {
        // given
        Document embedded = new Document("test", "<!DynamicParameter(1)!>");
        Document doc = new Document("<!DynamicParameter(0)!>", embedded);

        List<Object> arguments = asList("jeden", "dwa");

        // when
        Document result = PlaceholderReplacer.replacePlaceholders(doc, evalContext(arguments), (Object[]) null,
                null, false);

        // then
        assertThat(result).isInstanceOf(Document.class);

        Document expected = new Document("jeden", new Document("test", "dwa"));
        assertThat(result).isEqualTo(expected);
    }