}
// Num
@Test
public void testNewOptionAsIntGetValueAsNum() {
DHCPOption opt;
opt = DHCPOption.newOptionAsInt(DHO_DHCP_LEASE_TIME, 0x01FE02FC);
assertEquals(Integer.valueOf(0x01FE02FC), opt.getValueAsNum());
opt = DHCPOption.newOptionAsShort(DHO_INTERFACE_MTU, (short)1500);
assertEquals(Integer.valueOf(1500), opt.getValueAsNum());
opt = DHCPOption.newOptionAsByte(DHO_IP_FORWARDING, (byte)1);
assertEquals(Integer.valueOf(1), opt.getValueAsNum());
opt = DHCPOption.newOptionAsString(DHO_TFTP_SERVER, "foobar");
assertNull(opt.getValueAsNum());
opt = DHCPOption.newOptionAsString(DHO_TFTP_SERVER, null);
assertNull(opt.getValueAsNum());
}