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