@Test
    void testRegister() {
        PortsMeta pm = new PortsMeta();
        pm.on(0).tag("foo");
        pm.on(1).tag("bar");
        pm.on(5).tag("xyzzy");

        assertTrue(pm.contains(0, "foo"));
        assertTrue(pm.contains(1, "bar"));
        assertTrue(pm.contains(5, "xyzzy"));
        assertFalse(pm.contains(0, "bar"));
        assertFalse(pm.contains(2, "anything"));
    }
Tests proper functioning of the PortsMeta.

@author Vidar Larsen
config-model/src/test/java/com/yahoo/vespa/model/test/PortsMetaTestCase.java