ImportedVariable implements Serializable { @Override public String toString() { return this.name; } ImportedVariable();  ImportedVariable( String name, boolean optional, boolean external ); String getName(); void setName( String name ); boolean isOptional(); void setOptional( boolean optional ); boolean isExternal(); void setExternal( boolean external ); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { ImportedVariable var = new ImportedVariable( "test", false, false ); Assert.assertEquals( "test", var.toString()); }