SLING-2662 - test case with empty run modes string

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1412550 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java b/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
index 645b23a..36a2954 100644
--- a/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
+++ b/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
@@ -80,6 +80,12 @@
         assertActive(rm, false, "b", "c", "e", "f");
     }
 
+    @org.junit.Test public void testEmptyRunModesWithOptions() {
+        final SlingSettingsService rm = new SlingSettingsServiceImpl(new BundleContextMock("", "a,b,c|d,e,f", null));
+        assertActive(rm, true, "a", "d");
+        assertActive(rm, false, "b", "c", "e", "f");
+    }
+
     @org.junit.Test public void testOptionsSelected() {
         final SlingSettingsService rm = new SlingSettingsServiceImpl(new BundleContextMock("foo,bar,c,e", "a,b,c|d,e,f", null));
         assertActive(rm, true, "foo", "bar", "c", "e");