@Test
public void testEncode() {

    AbstractFilter af = new AbstractFilter() {
        public StringBuffer encode(StringBuffer buff) {
            return buff.append("foo");
        }
    };
    assertThat(af.encode()).isEqualTo("foo");
}