diff --git a/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java b/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java index c4d3de7..f9db6cd 100644 --- a/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java +++ b/rwx/src/test/java/org/commonjava/rwx/vocab/NilTest.java @@ -37,7 +37,7 @@ public void serializationTest() throws IOException, ClassNotFoundException { out.writeObject( Nil.NIL_VALUE ); - out.close(); + out.flush(); try ( ByteArrayInputStream bin = new ByteArrayInputStream( bout.toByteArray() ); ObjectInputStream in = new ObjectInputStream( bin ) ) {