### Question:
ExecCmdStreamClose extends AbstractIRODSPackingInstruction { public static ExecCmdStreamClose instance(final int fileDescriptor) throws JargonException { return new ExecCmdStreamClose(STREAM_CLOSE_API_NBR, fileDescriptor); } private  ExecCmdStreamClose(final int apiNumber, final int fileDescriptor); static ExecCmdStreamClose instance(final int fileDescriptor); @Override String toString(); @Override Tag getTagValue(); static final String PI_TAG; static final String FILE_INX; static final int STREAM_CLOSE_API_NBR; }### Answer:
@Test public void testInstance() throws Exception { ExecCmdStreamClose execCmd = ExecCmdStreamClose.instance(1); Assert.assertNotNull("null intance returned", execCmd); Assert.assertEquals("did not correctly set api number", ExecCmdStreamClose.STREAM_CLOSE_API_NBR, execCmd.getApiNumber()); }
@Test(expected = IllegalArgumentException.class) public void testInstanceZeroFileDescriptor() throws Exception { ExecCmdStreamClose.instance(0); }