@Test public void testToString() { AbstractFilter af = new AbstractFilter() { public StringBuffer encode(StringBuffer buff) { return buff.append("foo"); } }; assertThat(af.toString()).isEqualTo("foo"); }
@Override public String toString() { return encode(); }
AbstractFilter implements Filter { @Override public String toString() { return encode(); } }
AbstractFilter implements Filter { @Override public String toString() { return encode(); }  }
AbstractFilter implements Filter { @Override public String toString() { return encode(); }  @Override String encode(); @Override String toString(); }
AbstractFilter implements Filter { @Override public String toString() { return encode(); }  @Override String encode(); @Override String toString();  }