### Question:
IRODSUriUserInfo { static IRODSUriUserInfo fromString(final String encodedStr) { if (encodedStr == null || encodedStr.isEmpty()) { return null; } final int zIdx = encodedStr.indexOf(ZONE_INDICATOR); final int pIdx = encodedStr.indexOf(PASSWORD_INDICATOR); String encodedUser = null; String encodedZone = null; String encodedPassword = null; if (zIdx < 0 && pIdx < 0) { encodedUser = encodedStr; } else if (zIdx < 0 && pIdx >= 0) { encodedUser = encodedStr.substring(0, pIdx); encodedPassword = encodedStr.substring(pIdx + 1); } else if (zIdx >= 0 && pIdx <= zIdx) { encodedUser = encodedStr.substring(0, zIdx); encodedZone = encodedStr.substring(zIdx + 1); } else { encodedUser = encodedStr.substring(0, zIdx); encodedZone = encodedStr.substring(zIdx + 1, pIdx); encodedPassword = encodedStr.substring(pIdx + 1); } return new IRODSUriUserInfo(decode(encodedUser), decode(encodedZone), decode(encodedPassword)); } private  IRODSUriUserInfo(final String user, final String zone, final String password); static IRODSUriUserInfo instance(final String user, final String zone, final String password); static IRODSUriUserInfo localInstance(final String user, final String password); static IRODSUriUserInfo unauthenticatedInstance(final String user, final String zone); static IRODSUriUserInfo unauthenticatedLocalInstance(final String user); @Override String toString(); String getUserName(); String getZone(); String getPassword();  }### Answer:
@Test public void testFromStringNull() { Assert.assertNull(IRODSUriUserInfo.fromString(null)); }