### Question:
AuthRequest { protected static boolean isValidURI(String uri) { try { new URL(uri); return true; } catch (MalformedURLException e) { return false; } } AuthRequest(HttpRequest request); String getClientId(); String getResponseType(); String getRedirectUri(); String getState(); String getScope(); String getUserId(); void setUserId(String userId); void validate();  }### Answer:
@Test public void when_uri_not_valid_return_false() { boolean ok = AuthRequest.isValidURI("htp: assertFalse(ok); }
@Test public void when_uri_valid_return_true() { boolean ok = AuthRequest.isValidURI("http: assertTrue(ok); }