@Override
    public String render(String template, StatementContext ctx) {
        final ExtensionMethod extensionMethod = ctx.getExtensionMethod();
        final String originalResult = originalEngine.render(template, ctx);

        if (extensionMethod == null) {
            return originalResult;
        }

        final StringBuilder query = new StringBuilder(originalResult.length() + 100);
        query.append("/* ");
        final String className = extensionMethod.getType().getSimpleName();
        if (!className.isEmpty()) {
            query.append(className).append('.');
        }
        query.append(extensionMethod.getMethod().getName());
        query.append(" */ ");
        query.append(originalResult);

        return query.toString();
    }
@Test
    void testPrependsCorrectName() throws NoSuchMethodException {
        final ExtensionMethod extensionMethod = new ExtensionMethod(MyDao.class, MyDao.class.getMethod("myDbCall"));

        when(ctx.getExtensionMethod()).thenReturn(extensionMethod);

        final String result = sut.render(TEMPLATE, ctx);

        assertThat(result).isEqualTo(
            "/* " +
            extensionMethod.getType().getSimpleName() +
            "." +
            extensionMethod.getMethod().getName() +
            " */ " +
            ORIGINAL_RENDERED);
    }