@Test(expected = IllegalArgumentException.class)
    public void testIllegalArgumentThrownOnInvalidPortLow() throws Exception {
        PortScan.onAddress("127.0.0.1").setPort(0);
    }
To work on unit tests, switch the Test Artifact in the Build Variants view.
library/src/test/java/com/stealthcopter/networktools/PortScanTest.java