### Question:
JoinTableModel extends XulEventSourceAdapter implements Serializable { public List<JoinFieldModel> processTableFields( List<String> fields ) { List<JoinFieldModel> fieldModels = new ArrayList<JoinFieldModel>(); for ( String field : fields ) { JoinFieldModel fieldModel = new JoinFieldModel(); fieldModel.setName( field ); fieldModel.setParentTable( this ); fieldModels.add( fieldModel ); } return fieldModels; } JoinTableModel(); @Bindable String getName(); @Bindable void setName( String name ); @Bindable AbstractModelList<JoinFieldModel> getFields(); @Bindable void setFields( AbstractModelList<JoinFieldModel> fields ); List<JoinFieldModel> processTableFields( List<String> fields ); void reset(); @Override boolean equals( Object o );  }### Answer:
@Test public void testProcessTableFields() throws Exception { JoinTableModel model = new JoinTableModel(); model.setName( "m1" ); List<JoinFieldModel> joinFieldModels = model.processTableFields( Arrays.asList( "field1", "field2", "field3" ) ); assertEquals( 3, joinFieldModels.size() ); assertEquals( "field1", joinFieldModels.get( 0 ).getName() ); assertEquals( "field2", joinFieldModels.get( 1 ).getName() ); assertEquals( "field3", joinFieldModels.get( 2 ).getName() ); assertEquals( model, joinFieldModels.get( 0 ).getParentTable() ); assertEquals( model, joinFieldModels.get( 1 ).getParentTable() ); assertEquals( model, joinFieldModels.get( 2 ).getParentTable() ); }