WorkArea { public boolean isFiltered(Field field) { for (Filter filter : this.outputFilters) { boolean matches = filter.matches(field); if(matches) { log.debug("Filtered output of {} because it matches {}", field, filter); return true; } } return false; } WorkArea(String id, SortedSet<Field> fields);  WorkArea(String id, SortedSet<Field> fields, List<Filter> outputFilters); ByteBuffer createBuffer(Map<String, Object> parameters); ByteBuffer createBuffer(); Map<String, Object> parseResults(ByteBuffer buffer); List<String> getFieldIds(); List<String> getFieldIds(Comparator<Field> comparator, boolean includeFiltered, boolean includeInputFields); int length(); Field findField(String id); String getId(); boolean isFiltered(Field field); @Override String toString();  }
@Test public void testIsFiltered() throws Exception { assertFalse(workArea.isFiltered(fieldOne)); assertFalse(workArea.isFiltered(fieldTwo)); assertFalse(workArea.isFiltered(fieldThree)); assertTrue(workAreaWithFilters.isFiltered(fieldOne)); assertFalse(workAreaWithFilters.isFiltered(fieldTwo)); assertTrue(workAreaWithFilters.isFiltered(fieldThree)); }