URIUtil { public static void validateOpenAPISpecURL(String openAPISpecURL) { if (openAPISpecURL == null) { throw new MalformedURLException("OpenAPI spec URL is null"); } if (!isValidOpenAPISpecURL(openAPISpecURL)) { throw new MalformedURLException( "Provided OpenAPI specification URL does not match pattern: " + _openAPISpecURLPattern.pattern()); } }  static URI addQueryConditionToURL(
		String resourceURL, String queryCondition); static String extractEndpointPathSegment(URL openAPISpecURL); static String extractJaxRSAppBasePathSegment(URL openAPISpecURL); static URL extractServerURL(URL openAPISpecURL); static String getLastPathSegment(String url); static boolean isValidOpenAPISpecURL(String endpointURL); static URI setPaginationLimitOnURL(String resourceURL, int limit); static URI toURI(String href); static URL toURL(String href); static URI updateWithQueryParameters(
		String url, Map<String, String> queryParameters); static void validateOpenAPISpecURL(String openAPISpecURL);  }
@Test(expected = MalformedURLException.class) public void testValidateIfOpenAPISpecURLIsInvalid() { URIUtil.validateOpenAPISpecURL("http: }
@Test(expected = MalformedURLException.class) public void testValidateIfOpenAPISpecURLIsNull() { URIUtil.validateOpenAPISpecURL(null); }
@Test public void testValidateIfOpenAPISpecURLIsValid() { URIUtil.validateOpenAPISpecURL( "http: }