### Question:
GitskariosUriManager { public User getUser(String url) throws GalimatiasParseException { if (isReserved(url)) { return null; } User user = new User(); URL parsedUrl = URL.parse(url); user.setLogin(parsedUrl.pathSegments().get(0)); return user; }  boolean isReserved(String uri); RepoInfo getRepoInfo(String url); RepoInfo getRepoInfo(Uri uri); User getUser(String url); User getUser(Uri uri); @NonNull CommitInfo getCommitInfo(Uri uri); @NonNull IssueInfo getIssueCommentInfo(Uri uri); @NonNull ReleaseInfo getReleaseInfo(Uri uri); @NonNull IssueInfo getIssueInfo(Uri uri); @NonNull FileInfo getFileInfo(Uri uri); static final String[] RESERVED_KEYS; }### Answer:
@Test public void shouldGiveGitskariosUser_whenParsingGitskariosUrl() throws GalimatiasParseException { String uri = "https: User user = urisManager.getUser(uri); assertEquals(user.getLogin(), "alorma"); }
@Test public void shouldGiveUserNull_whenParsingGitskariosUrl() throws GalimatiasParseException { String uri = "https: User user = urisManager.getUser(uri); assertNull(user); }