public void testNewOptionAsShorts() {
short[] shorts = new short[3];
shorts[0] = (short) 1500;
shorts[1] = (short) 0;
shorts[2] = (short) -1;
DHCPOption opt = DHCPOption.newOptionAsShorts(DHO_PATH_MTU_PLATEAU_TABLE, shorts);
DHCPOption opt2 = new DHCPOption(DHO_PATH_MTU_PLATEAU_TABLE, HexUtils.hexToBytes("05DC0000FFFF"));
assertEquals(opt2, opt);
assertTrue(Arrays.equals(opt.getValue(), HexUtils.hexToBytes("05DC0000FFFF")));
assertTrue(Arrays.equals(shorts, opt.getValueAsShorts()));
}