Tweak test for Java-style array initialization
diff --git a/src/spec/test/DifferencesFromJavaTest.groovy b/src/spec/test/DifferencesFromJavaTest.groovy
index d3f935e..01f8c0f 100644
--- a/src/spec/test/DifferencesFromJavaTest.groovy
+++ b/src/spec/test/DifferencesFromJavaTest.groovy
@@ -48,13 +48,14 @@
         shouldFail {
             assertScript '''
                 // tag::arraycreate_fail[]
-                int[] array = { 1, 2, 3}
+                int[] array = {1, 2, 3}
                 // end::arraycreate_fail[]
             '''
         }
         assertScript '''
             // tag::arraycreate_success[]
-            int[] array = [1,2,3]
+            int[] array = [1, 2, 3]
+            int[] array2 = new int[] {1, 2, 3} // Groovy 3.0.0 supports the Java-style array initialization
             // end::arraycreate_success[]
         '''
     }