public VlanId egressVlan() {
        if (!object.has(EGRESS_VLAN)) {
            return VlanId.NONE;
        }

        try {
            return VlanId.vlanId(object.path(EGRESS_VLAN).asText());
        } catch (IllegalArgumentException e) {
            return null;
        }
    }
@Test
    public void egressVlan() throws Exception {
        VlanId egressVlan = config.egressVlan();
        assertNotNull("egressVlan should not be null", egressVlan);
        assertThat(egressVlan, is(EGRESS_VLAN_1));
    }