NoOpMetadataFilter extends MetadataFilterImpl { @Override public MetadataCollection filter(MetadataCollection original) { return (MetadataCollection) original.clone(); } NoOpMetadataFilter(); @Override MetadataCollection filter(MetadataCollection original);  }
@Test public void testFilterMessage() throws Exception { NoOpMetadataFilter filter = new NoOpMetadataFilter(); MetadataCollection c = filter.filter(createMessage()); assertEquals(8, c.size()); }
@Test public void testFilterSet() throws Exception { NoOpMetadataFilter filter = new NoOpMetadataFilter(); MetadataCollection c = filter.filter(createMessage().getMetadata()); assertEquals(8, c.size()); }
@Test public void testFilterCollection() throws Exception { NoOpMetadataFilter filter = new NoOpMetadataFilter(); MetadataCollection c = filter.filter(new MetadataCollection(createMessage().getMetadata())); assertEquals(8, c.size()); }