[MSHARED-574] UT failure on Windows: utils.io.Java7SupportTest createAndReadSymlink

Disable #createAndReadSymlink() for all Windows. Eventhough Windows Vista+ suppor Symlinks, we need elevated rights which we cannot obtain at runtime. Disable for now on Windows in general.

It might be better to catch the exception on Windows...

This closes #16

git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1792170 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/maven/shared/utils/io/Java7SupportTest.java b/src/test/java/org/apache/maven/shared/utils/io/Java7SupportTest.java
index 36cc1cb..9652e53 100644
--- a/src/test/java/org/apache/maven/shared/utils/io/Java7SupportTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/io/Java7SupportTest.java
@@ -26,8 +26,8 @@
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assume.assumeThat;
-import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.CoreMatchers.not;
+import static org.hamcrest.CoreMatchers.startsWith;
 
 public class Java7SupportTest
 {
@@ -47,7 +47,7 @@
     public void createAndReadSymlink()
         throws Exception
     {
-        assumeThat( System.getProperty( "os.name" ), is( not( "Windows XP" ) ) );
+        assumeThat( System.getProperty( "os.name" ), not( startsWith( "Windows" ) ) );
         File file = new File( "target/fzz" );
         if ( Java7Support.isAtLeastJava7() )
         {