@@ -0,0 +1,1068 @@
+package com.hubspot.jinjava;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport com.hubspot.jinjava.interpret.JinjavaInterpreter;%0Aimport com.hubspot.jinjava.lib.filter.Filter;%0Aimport java.util.HashMap;%0Aimport org.junit.Test;%0A%0Apublic class FilterOverrideTest %7B%0A%0A  @Test%0A  public void itAllowsUsersToOverrideBuiltInFilters() %7B%0A    Jinjava jinjava = new Jinjava();%0A    String template = %22%7B%7B 5 %7C add(6) %7D%7D%22;%0A%0A    assertThat(jinjava.render(template, new HashMap%3C%3E())).isEqualTo(%2211%22);%0A%0A    jinjava.getGlobalContext().registerClasses(DescriptiveAddFilter.class);%0A    assertThat(jinjava.render(template, new HashMap%3C%3E())).isEqualTo(%225 + 6 = 11%22);%0A  %7D%0A%0A  public static class DescriptiveAddFilter implements Filter %7B%0A%0A    @Override%0A    public String getName() %7B%0A      return %22add%22;%0A    %7D%0A%0A    @Override%0A    public Object filter(Object var, JinjavaInterpreter interpreter, String... args) %7B%0A      return (%0A        var +%0A        %22 + %22 +%0A        args%5B0%5D +%0A        %22 = %22 +%0A        (Integer.parseInt(var.toString()) + Integer.parseInt(args%5B0%5D))%0A      );%0A    %7D%0A  %7D%0A%7D%0A

Add test for overriding built-in filters (#951)