@Test
public void testSetDirection() throws Exception {

  try {
    ph.setDirection(PcapDirection.OUT);
    fail();
  } catch (PcapNativeException e) {
    assertTrue(e.getMessage().startsWith("Failed to set direction:"));
  }
}