diff --git a/solr/core/src/test/org/apache/solr/rest/schema/TestManagedSchemaFieldResource.java b/solr/core/src/test/org/apache/solr/rest/schema/TestManagedSchemaFieldResource.java
index adcf03f104e..7c679b390e9 100644
--- a/solr/core/src/test/org/apache/solr/rest/schema/TestManagedSchemaFieldResource.java
+++ b/solr/core/src/test/org/apache/solr/rest/schema/TestManagedSchemaFieldResource.java
@@ -156,7 +156,7 @@ public class TestManagedSchemaFieldResource extends RestTestBase {
managedSchemaContents = FileUtils.readFileToString(managedSchemaFile, "UTF-8");
Pattern newfield2StoredTrueIndexedTrueMultiValuedTruePattern
= Pattern.compile( "");
+ + "(?=.*stored=\"true\")(?=.*indexed=\"true\")(?=.*multiValued=\"true\").*/>");
assertTrue(newfield2StoredTrueIndexedTrueMultiValuedTruePattern.matcher(managedSchemaContents).find());
assertQ("/schema/fields/newfield2?indent=on&wt=xml",
@@ -211,7 +211,7 @@ public class TestManagedSchemaFieldResource extends RestTestBase {
managedSchemaContents = FileUtils.readFileToString(managedSchemaFile, "UTF-8");
Pattern newfield2StoredTrueIndexedTrueMultiValuedTruePattern
= Pattern.compile( "");
+ + "(?=.*stored=\"true\")(?=.*indexed=\"true\")(?=.*multiValued=\"true\").*/>");
assertTrue(newfield2StoredTrueIndexedTrueMultiValuedTruePattern.matcher(managedSchemaContents).find());
assertQ("/schema/fields?indent=on&wt=xml",