Merge
diff --git a/test/java/net/HttpURLPermission/HttpURLPermissionTest.java b/test/java/net/HttpURLPermission/HttpURLPermissionTest.java
index c2debe7..4f4ea85 100644
--- a/test/java/net/HttpURLPermission/HttpURLPermissionTest.java
+++ b/test/java/net/HttpURLPermission/HttpURLPermissionTest.java
@@ -187,11 +187,12 @@
         throws Exception {
 
         HttpURLPermission out = new HttpURLPermission(name, actions);
-        FileOutputStream fos = new FileOutputStream("out.ser");
-        ObjectOutputStream o = new ObjectOutputStream(fos);
+
+        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+        ObjectOutputStream o = new ObjectOutputStream(baos);
         o.writeObject(out);
-        FileInputStream fis = new FileInputStream("out.ser");
-        ObjectInputStream i = new ObjectInputStream(fis);
+        ByteArrayInputStream bain = new ByteArrayInputStream(baos.toByteArray());
+        ObjectInputStream i = new ObjectInputStream(bain);
         HttpURLPermission in = (HttpURLPermission)i.readObject();
         if (!in.equals(out)) {
             System.out.println ("FAIL");