### Question:
IRODSUriUserInfo { public static IRODSUriUserInfo instance(final String user, final String zone, final String password) { return new IRODSUriUserInfo(user, zone, password); } 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 testInstance() { final IRODSUriUserInfo info = IRODSUriUserInfo.instance("user", "zone", "password"); Assert.assertEquals("user.zone:password", info.toString()); }
@Test(expected = IllegalArgumentException.class) public void testInstanceWithBlankUser() { IRODSUriUserInfo.instance("", "zone", "password"); }