static void assertEq(Configuration expected, Configuration actual) {
        // Check that the actual config contains all the properties of the expected
        for (Iterator<?> it = expected.getKeys(); it.hasNext();) {
            String key = (String) it.next();
            assertTrue("actual should contain " + key, actual.containsKey(key));
            assertEquals("value of " + key, expected.getProperty(key), actual.getProperty(key));
        }
        // Check that the actual config has no extra properties
        for (Iterator<?> it = actual.getKeys(); it.hasNext();) {
            String key = (String) it.next();
            assertTrue("expected should contain " + key, expected.containsKey(key));
        }
    }