assertFalse( "explicit does not match anything", ref.matches( any ) );
}
public void testSerialization() throws IOException, ClassNotFoundException
{
ReferenceDescriptor entry = new ReferenceDescriptor( m_classname, m_version );
checkDescriptor( entry, m_classname, m_version );
File file = new File( "test.out" );
ObjectOutputStream oos = new ObjectOutputStream( new FileOutputStream( file ) );
oos.writeObject( entry );
oos.close();
ObjectInputStream ois = new ObjectInputStream( new FileInputStream( file ) );
ReferenceDescriptor serialized = (ReferenceDescriptor) ois.readObject();
ois.close();
file.delete();
checkDescriptor( entry, m_classname, m_version );
assertEquals( entry, serialized );
assertEquals( entry.hashCode(), serialized.hashCode() );
}