public static String evaluate(final co.elastic.logstash.api.Event event, final String template)
        throws JsonProcessingException {
        if (event instanceof Event) {
            return evaluate((Event) event, template);
        } else {
            throw new IllegalStateException("Unknown event concrete class: " + event.getClass().getName());
        }
    }
@Test
    public void TestMixDateAndFieldsJavaSyntax() throws IOException {
        Event event = getTestEvent();
        String path = "/full/%{{YYYY-DDD}}/weeee/%{bar}";
        assertEquals("/full/2015-274/weeee/foo", StringInterpolation.evaluate(event, path));
    }