WorkArea { protected Object resolveInputValue(Map<String, Object> parameters, Field field) { if(!field.isInput()) { return null; } Object value = null; if(field.isAliased() && parameters.containsKey(field.getAlias())) { value = parameters.get(field.getAlias()); log.debug("{} resolved input parameter value {} with alias", field, value); }else if(parameters.containsKey(field.getId())) { value = parameters.get(field.getId()); log.debug("{} resolved input parameter value {} with id", field, value); } return value; } 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 testResolveInputValue() throws Exception { Map<String, Object> params = new HashMap<String, Object>(); assertNull(workArea.resolveInputValue(params, fieldOne)); params.put(fieldOne.getId(), "X"); assertEquals("X",workArea.resolveInputValue(params, fieldOne)); params.put(fieldOne.getAlias(), "Y"); assertEquals("Y",workArea.resolveInputValue(params, fieldOne)); params.clear(); params.put(fieldFive.getId(),"Q"); assertFalse(fieldFive.isInput()); assertNull(workArea.resolveInputValue(params, fieldFive)); }