class Pcaps {

  public static String strError(int error) {
    return NativeMappings.pcap_strerror(error).getString(0);
  }

}

class PcapsTest {

  private static final Logger logger;

  @Test
  public void testStrError() throws Exception {

    String err = Pcaps.strError(1);
    logger.info("err: " + err);
    assertNotNull(err);
    assertFalse(err.length() == 0);
  }

}