Import implements Serializable { @Override public int hashCode() { return this.instancePath.hashCode(); } Import( Instance instance );  Import( String instancePath, String componentName );  Import( String instancePath, String componentName, Map<String,String> exportedVars ); Map<String,String> getExportedVars(); String getInstancePath(); String getComponentName(); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString();  }
@Test public void testHashCode() { Assert.assertTrue( new Import( "inst", "comp" ).hashCode() > 0 ); Assert.assertTrue( new Import( new Instance()).hashCode() > 0 ); }