@Test
public void testParseLeaseContent()
{

    final String leaseContent = "lease 192.168.0.50 {\n" + "        starts 4 2011/09/22 20:27:28;\n"
        + "        ends 1 2011/09/26 20:27:28;\n" + "        tstp 1 2011/09/26 20:27:28;\n"
        + "        binding state free;\n" + "        hardware ethernet 00:00:00:00:00:00;\n"
        + "        uid \"\\001\\000\\033w\\223\\241i\";\n client-hostname \"QCT2C600CFC761D\";\n}";
    DhcpLease dhcpLease = DhcpLeaseParser.parseLeaseContent( leaseContent );
    assertNotNull( dhcpLease );
    assertNotNull( dhcpLease.getIpAddress() );
    assertTrue( StringUtils.equals( dhcpLease.getIpAddress(), "192.168.0.50" ) );
    assertNotNull( dhcpLease.getMacAddress() );
    assertTrue( StringUtils.equals( dhcpLease.getMacAddress(), "00:00:00:00:00:00" ) );
}