@Test
    public void testLongDefaultValues() {
        ConfigDefinition def = new ConfigDefinition("foo", "namespace1");

        def.addLongDef("foo");
        def.addLongDef("bar", 1234567890123L);
        def.addLongDef("xyzzy", 2L, 0L, null);

        assertNull(def.getLongDefs().get("foo").getDefVal());
        assertEquals(ConfigDefinition.LONG_MIN, def.getLongDefs().get("foo").getMin());
        assertEquals(ConfigDefinition.LONG_MAX, def.getLongDefs().get("foo").getMax());
        assertEquals(1234567890123L, def.getLongDefs().get("bar").getDefVal().longValue());

        assertEquals(2L, def.getLongDefs().get("xyzzy").getDefVal().longValue());
        assertEquals(0L, def.getLongDefs().get("xyzzy").getMin().longValue());
        assertEquals(ConfigDefinition.LONG_MAX, def.getLongDefs().get("xyzzy").getMax());
    }
Unit tests for ConfigDefinition.

@author hmusum
config/src/test/java/com/yahoo/vespa/config/ConfigDefinitionTest.java