RepositoryDelegateFactory { public boolean acceptUrl( String url ) { return !StringUtil.isBlank(url) && determineProtocol(url.trim()) > 0; } protected  RepositoryDelegateFactory(); RepositoryDelegate createRepositoryDelegate( String url,
                                                        Properties info,
                                                        JcrContextFactory contextFactory ); boolean acceptUrl( String url );  }
@Test public void shouldNotAcceptInvalidURL() { assertThat(factory().acceptUrl(INVALID_URL), is(false)); }