@Test
public void testOpenLive() throws Exception {

  PcapHandle handle;
  try {
    handle = Pcaps.findAllDevs().get(0).openLive(55555, PromiscuousMode.PROMISCUOUS, 100);
  } catch (IndexOutOfBoundsException e) {
    return;
  } catch (PcapNativeException e) {
    assertTrue(
        "The exception should complain about permission to capture.",
        e.getMessage().contains("You don't have permission to capture on that device"));
    return;
  }
  assertNotNull(handle);
  assertTrue(handle.isOpen());
  logger.info(handle.toString());
}