Add tests.
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java
index d53b9c0..ecc57e4 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java
@@ -17,6 +17,8 @@
package org.apache.commons.vfs2;
+import static org.junit.Assert.assertNotEquals;
+
import java.nio.file.Paths;
import org.apache.commons.vfs2.impl.StandardFileSystemManager;
@@ -51,4 +53,16 @@
Assert.assertNotNull(VFS.getManager());
Assert.assertNotEquals(fileSystemManager, VFS.getManager());
}
+
+ @Test
+ public void testStaticClose() throws FileSystemException {
+ final FileSystemManager manager = VFS.getManager();
+ VFS.close();
+ assertNotEquals(manager, VFS.getManager());
+ }
+ @Test
+ public void testStaticCloseRepeatable() throws FileSystemException {
+ VFS.close();
+ VFS.close();
+ }
}