public void testWriteReadEmpty() throws Exception {
  ByteArrayOutputStream out=new ByteArrayOutputStream(0);
  ObjectOutputStream os=new ObjectOutputStream(out);
  os.writeObject(empty);
  ObjectInputStream is=new ObjectInputStream(new ByteArrayInputStream(out.toByteArray()));
  NIOConfiguration copy=(NIOConfiguration)is.readObject();
  is.close();
  os.close();
  assertTrue(helper.areEquals(empty,copy));
}

public void testWriteReadEmpty ( ) throws Exception { ByteArrayOutputStream out = new ByteArrayOutputStream ( 0 ) ; ObjectOutputStream os = new ObjectOutputStream ( out ) ; os . writeObject ( empty ) ; ObjectInputStream is = new ObjectInputStream ( new ByteArrayInputStream ( out . toByteArray ( ) ) ) ; NIOConfiguration copy = ( NIOConfiguration ) is . readObject ( ) ; is . close ( ) ; os . close ( ) ; assertTrue ( helper . areEquals ( empty , copy ) ) ; }
test read and write empty clusterpolicy object
