### Question:
GetTempPasswordForOther extends AbstractIRODSPackingInstruction { public static GetTempPasswordForOther instance(final String targetUserName) { return new GetTempPasswordForOther(targetUserName); } private  GetTempPasswordForOther(final String targetUserName); static GetTempPasswordForOther instance(final String targetUserName); @Override Tag getTagValue(); String getTargetUserName(); static final int GET_TEMP_PASSWORD_FOR_OTHER_API_NBR; static final String PI_TAG; }### Answer:
@Test public final void testInstance() { String testUser = "testUser"; GetTempPasswordForOther instance = GetTempPasswordForOther.instance(testUser); Assert.assertNotNull("null instance returned", instance); Assert.assertEquals("wrong API number", GetTempPasswordForOther.GET_TEMP_PASSWORD_FOR_OTHER_API_NBR, instance.getApiNumber()); }
@Test(expected = IllegalArgumentException.class) public final void testInstanceNullUser() { GetTempPasswordForOther.instance(null); }
@Test(expected = IllegalArgumentException.class) public final void testInstanceBlankUser() { GetTempPasswordForOther.instance(""); }