### Question:
IRODSUriUtils { public static URI buildAnonymousURI(final String host, final int port, final String absPath) { if (absPath == null || absPath.isEmpty()) { throw new IllegalArgumentException("null or empty path"); } try { return new URI(SCHEME, null, host, port, absPath, null, null); } catch (final URISyntaxException e) { throw new JargonRuntimeException(e); } }  static IRODSUriUserInfo getUserInfo(final URI irodsURI); static String getUserName(final URI irodsURI); static String getZone(final URI irodsURI); static String getPassword(final URI irodsURI); static String getHostFromURI(final URI uri); static int getPortFromURI(final URI uri); static String getAbsolutePathFromURI(final URI uri); static IRODSAccount getIRODSAccountFromURI(final URI irodsURI); static boolean isIRODSURIScheme(final URI irodsURI); static URI buildBaseURI(final String host, final int port, final IRODSUriUserInfo userInfo); static URI buildBaseURI(final String host, final int port, final String username); static URI buildURI(final String host, final int port, final IRODSUriUserInfo userInfo,
			final String absPath); static URI buildURI(final String host, final int port, final String username, final String absPath); static URI buildAnonymousURI(final String host, final int port, final String absPath); static URI buildURIForAnAccountAndPath(final IRODSAccount irodsAccount, final String irodsPath); static URI buildURIForAnAccountWithNoUserInformationIncluded(final IRODSAccount irodsAccount,
			final String irodsPath);  }### Answer:
@Test public void testBuildAnonymousURI() { final URI uri = buildAnonymousURI("host.domain", 10000, "/zone/home/user/afile.txt"); assertNull("URI contains user info", uri.getUserInfo()); }
@Test(expected = IllegalArgumentException.class) public void testBuildAnonymouuseURINoPath() { buildAnonymousURI("host.domain", 10000, null); }