source("TestHarness.bsh");

class SerTest1 implements java.io.Serializable { 
	int i;
	SerTest1() { }
	SerTest1(int i ) {
		this.i = i;
	}
}
f=new SerTest1(2);
//new MyObjectOutputStream( new FileOutputStream("classser.ser") ).writeObject(f);
//new ObjectOutputStream( new FileOutputStream("classser.ser") ).writeObject(f);
save( f, "classser.ser" );

f2=load("classser.ser");
assert( f2 instanceof SerTest1 );
assert( f2.i == 2 );

rm("classser.ser");

complete();
