sessionid4 implements XdrAble { @Override public boolean equals(Object obj) { if (obj == this) return true; if ( !(obj instanceof sessionid4 )) return false; final sessionid4 other = (sessionid4) obj; return Arrays.equals(this.value, other.value); } sessionid4();  sessionid4(byte [] value);  sessionid4(XdrDecodingStream xdr); void xdrEncode(XdrEncodingStream xdr); void xdrDecode(XdrDecodingStream xdr); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); public byte [] value; }
@Test public void testEqualsFalse() { byte[] id1 = "bla".getBytes(); byte[] id2 = "blabla".getBytes(); sessionid4 session1 = new sessionid4(id1); sessionid4 session2 = new sessionid4(id2); assertFalse("not equal sessions not recognized", session1.equals(session2)); }