IpAddress a3=new IpAddress("thishostdoesnexist", 6666);
    public void testWriteView() throws IOException, IllegalAccessException, InstantiationException {        ViewId vid=new ViewId(null, 12345);        Vector members=new Vector();        View v;        IpAddress a1=new IpAddress("localhost", 1234);        IpAddress a2=new IpAddress("127.0.0.1", 4444);        IpAddress a3=new IpAddress("thishostdoesnexist", 6666);        IpAddress a4=new IpAddress("www.google.com", 7777);        members.add(a1);        members.add(a2);        members.add(a3);        members.add(a4);        v=new View(vid, members);        ByteArrayOutputStream outstream=new ByteArrayOutputStream();        DataOutputStream dos=new DataOutputStream(outstream);        Util.writeGenericStreamable(v, dos);        Util.writeStreamable(v, dos);        dos.close();        byte[] buf=outstream.toByteArray();        ByteArrayInputStream instream=new ByteArrayInputStream(buf);        DataInputStream dis=new DataInputStream(instream);        View v2=(View)Util.readGenericStreamable(dis);        assertEquals(v, v2);        v2=(View)Util.readStreamable(View.class, dis);        assertEquals(v, v2);    }