### Question:
IRODSUriUtils { public static IRODSAccount getIRODSAccountFromURI(final URI irodsURI) throws JargonException { if (!isIRODSURIScheme(irodsURI)) { throw new InvalidIRODSUriException(irodsURI); } final IRODSUriUserInfo info = getUserInfo(irodsURI); if (info == null || info.getPassword() == null || info.getZone() == null) { throw new JargonException("No user information in URI, cannot create iRODS account"); } final String home = PATH_SEPARATOR + info.getZone() + PATH_SEPARATOR + "home" + PATH_SEPARATOR + info.getUserName(); return IRODSAccount.instance(irodsURI.getHost(), irodsURI.getPort(), info.getUserName(), info.getPassword(), home, info.getZone(), ""); }  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(expected = InvalidIRODSUriException.class) public void testGetIRODSAccountFromURIInvalidURI() throws Exception { getIRODSAccountFromURI(new URI("http: }
@Test(expected = JargonException.class) public void testGetIRODSAccountFromURINoUserInfo() throws Exception { getIRODSAccountFromURI(new URI("irods: }
@Test(expected = JargonException.class) public void testGetIRODSAccountFromURINoZone() throws Exception { getIRODSAccountFromURI(new URI("irods: }
@Test(expected = JargonException.class) public void testGetIRODSAccountFromURINoPassword() throws Exception { getIRODSAccountFromURI(new URI("irods: }