opt.getValueAsShort();
}
// Shorts
@Test
public void testGetValueAsShorts() {
DHCPOption opt = new DHCPOption(DHO_PATH_MTU_PLATEAU_TABLE, HexUtils.hexToBytes("05DC0000FFFF"));
short[] shorts = new short[3];
shorts[0] = (short) 1500;
shorts[1] = (short) 0;
shorts[2] = (short) -1;
assertEquals(DHO_PATH_MTU_PLATEAU_TABLE, opt.getCode());
assertTrue(Arrays.equals(opt.getValue(), HexUtils.hexToBytes("05DC0000FFFF")));
assertTrue(Arrays.equals(shorts, opt.getValueAsShorts()));
}