@Override
    public int encode(MplsLabel resource) {
        return resource.toInt();
    }
@Test
    public void testEncode() {
        assertThat(sut.encode(MplsLabel.mplsLabel(100)), is(100));
    }