@Override
    public int encode(VlanId resource) {
        return resource.toShort();
    }
@Test
    public void testEncode() {
        assertThat(sut.encode(VlanId.vlanId((short) 100)), is(100));
    }