### Question:
JoinRelationshipModel extends XulEventSourceAdapter implements Serializable { @Bindable public String getName() { String innerJoinLabel = ModelerMessagesHolder.getMessages().getString( "multitable.INNER_JOIN" ); String leftTable = this.leftKeyFieldModel.getParentTable().getName(); String rightTable = this.rightKeyFieldModel.getParentTable().getName(); StringBuffer joinName = new StringBuffer(); joinName.append( leftTable ); joinName.append( "." ); joinName.append( this.leftKeyFieldModel.getName() ); joinName.append( " - " ); joinName.append( innerJoinLabel ); joinName.append( " - " ); joinName.append( rightTable ); joinName.append( "." ); joinName.append( this.rightKeyFieldModel.getName() ); return joinName.toString(); } JoinRelationshipModel(); @Bindable JoinFieldModel getLeftKeyFieldModel(); @Bindable void setLeftKeyFieldModel( JoinFieldModel leftKeyFieldModel ); @Bindable JoinFieldModel getRightKeyFieldModel(); @Bindable void setRightKeyFieldModel( JoinFieldModel rightKeyFieldModel ); @Bindable String getName(); boolean equals( JoinRelationshipModel join );  }### Answer:
@Test public void testGetName() throws Exception { JoinRelationshipModel relModel = new JoinRelationshipModel(); relModel.setLeftKeyFieldModel( createFieldModel( "field1", "pt1" ) ); relModel.setRightKeyFieldModel( createFieldModel( "field2", "pt2" ) ); assertEquals( "pt1.field1 - multitable.INNER_JOIN - pt2.field2", relModel.getName() ); }