### Question:
UserAdminInp extends AbstractIRODSPackingInstruction { public static UserAdminInp instanceForChangeUserPassword(final String userName, final String obfuscatedPassword) throws JargonException { if (userName == null || userName.isEmpty()) { throw new JargonException("userName is null or missing"); } if (obfuscatedPassword == null || obfuscatedPassword.isEmpty()) { throw new JargonException("obfuscatedPassword is null or missing"); } return new UserAdminInp(USER_PW, userName, PASSWORD, obfuscatedPassword, BLANK, BLANK, BLANK, BLANK, BLANK, BLANK, USER_ADMIN_INP_API_NBR); } private  UserAdminInp(final String arg0, final String arg1, final String arg2, final String arg3, final String arg4,
			final String arg5, final String arg6, final String arg7, final String arg8, final String arg9,
			final int apiNumber); static UserAdminInp instanceForChangeUserPassword(final String userName, final String obfuscatedPassword); static UserAdminInp instanceForAddUserGroup(final UserGroup userGroup); static UserAdminInp instanceForAddUserToGroup(final String userGroupName, final String userName,
			final String zoneName); String getArg0(); String getArg1(); String getArg2(); String getArg3(); String getArg4(); String getArg5(); String getArg6(); String getArg7(); String getArg8(); String getArg9(); @Override Tag getTagValue(); static final String PI_TAG; static final int USER_ADMIN_INP_API_NBR; static final String USER_PW; static final String PASSWORD; static final String BLANK; static final String ARG0; static final String ARG1; static final String ARG2; static final String ARG3; static final String ARG4; static final String ARG5; static final String ARG6; static final String ARG7; static final String ARG8; static final String ARG9; }### Answer:
@Test public final void testGetTagValueForUserPasswordChange() throws Exception { String userName = "testuser"; String obfuscatedPassword = "obfuscatedPassword"; UserAdminInp userAdminInp = UserAdminInp.instanceForChangeUserPassword(userName, obfuscatedPassword); String tagValue = userAdminInp.getParsedTags(); StringBuilder sb = new StringBuilder(); sb.append("<userAdminInp_PI><arg0>userpw</arg0>\n"); sb.append("<arg1>testuser</arg1>\n"); sb.append("<arg2>password</arg2>\n"); sb.append("<arg3>obfuscatedPassword</arg3>\n"); sb.append("<arg4></arg4>\n"); sb.append("<arg5></arg5>\n"); sb.append("<arg6></arg6>\n"); sb.append("<arg7></arg7>\n"); sb.append("<arg8></arg8>\n"); sb.append("<arg9></arg9>\n"); sb.append("</userAdminInp_PI>\n"); Assert.assertEquals("invalid tags generated", sb.toString(), tagValue); }
@Test public final void testInstanceForChangeUserPassword() throws Exception { String userName = "testuser"; String obfuscatedPassword = "obfuscatedPassword"; UserAdminInp userAdminInp = UserAdminInp.instanceForChangeUserPassword(userName, obfuscatedPassword); Assert.assertNotNull("null userAdminInp", userAdminInp); Assert.assertEquals("incorrect API number", 714, userAdminInp.getApiNumber()); }