@Test public void abstractListFilterToStringTest() { AndFilter andFilter = new AndFilter(); andFilter.addFilter(new StanzaIdFilter("foo")); andFilter.addFilter(new ThreadFilter("42")); andFilter.addFilter(MessageWithBodiesFilter.INSTANCE); final String res =andFilter.toString(); assertEquals("AndFilter: (StanzaIdFilter: id=foo, ThreadFilter: thread=42, MessageWithBodiesFilter)", res); }