// Bytes
@Test
public void testGetValueAsBytes() {
byte[] bb = HexUtils.hexToBytes("00010000FC0AE003FFFFFFFF");
DHCPOption opt = new DHCPOption(DHO_DHCP_PARAMETER_REQUEST_LIST, bb);
assertEquals(DHO_DHCP_PARAMETER_REQUEST_LIST, opt.getCode());
assertTrue(Arrays.equals(HexUtils.hexToBytes("00010000FC0AE003FFFFFFFF"), opt.getValue()));
assertTrue(Arrays.equals(HexUtils.hexToBytes("00010000FC0AE003FFFFFFFF"), opt.getValueAsBytes()));
opt = new DHCPOption(DHO_DHCP_PARAMETER_REQUEST_LIST, new byte[0]);
assertTrue(Arrays.equals(new byte[0], opt.getValueAsBytes()));
opt = new DHCPOption(DHO_DHCP_PARAMETER_REQUEST_LIST, new byte[1]);
assertTrue(Arrays.equals(HexUtils.hexToBytes("00"), opt.getValueAsBytes()));
opt = new DHCPOption(DHO_DHCP_PARAMETER_REQUEST_LIST, new byte[2]);
assertTrue(Arrays.equals(HexUtils.hexToBytes("0000"), opt.getValueAsBytes()));
}