WorkArea { public ByteBuffer createBuffer(Map<String, Object> parameters) { ByteBuffer buffer = createByteBuffer(); for (Field field : fields) { log.trace("Before write ByteBuffer.position={}", buffer.position()); field.write(resolveInputValue(parameters, field), buffer); log.trace("After write ByteBuffer.position={}", buffer.position()); } buffer.flip(); return buffer; } 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 testCreateBuffer_withoutParams() { ByteBuffer buffer = workArea.createBuffer(); assertCreateBuffer(buffer, " "); }