@Test
    public void shouldTrimSystemPropertyPrefixesAndNoMore() {
        System.setProperty("blah.a.x", "1");
        System.setProperty("blah.b.y", "true");
        System.setProperty("blah.cc.zzz", "three");
        System.setProperty("bleep.d.d", "false");
        Configuration configuration = SystemUtil.getSystemPropertiesConfiguration("blah", true);
        assertEquals(3, IteratorUtils.count(configuration.getKeys()));
        assertEquals(1, configuration.getInt("a.x"));
        assertTrue(configuration.getBoolean("b.y"));
        assertEquals("three", configuration.getProperty("cc.zzz"));
        assertFalse(configuration.containsKey("d") || configuration.containsKey("bleep.d"));
        assertFalse(configuration.containsKey("d.d") || configuration.containsKey("bleep.d.d"));
        System.clearProperty("blah.a.x");
        System.clearProperty("blah.b.y");
        System.clearProperty("blah.cc.zzz");
        System.clearProperty("bleep.d.d");
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/util/SystemUtilTest.java