### Question:
JackrabbitRepositorySource extends JcrRepositorySource { @Override public RepositorySourceCapabilities getCapabilities() { return capabilities; }  @Override synchronized Reference getReference(); @Override void initialize( RepositoryContext context ); @Override RepositoryConnection getConnection(); @Override RepositorySourceCapabilities getCapabilities(); String getUrl(); void setUrl( String url );  }### Answer:
@Test public void shouldReturnNonNullCapabilities() { assertThat(repositorySource.getCapabilities(), is(notNullValue())); }
@Test public void shouldSupportSameNameSiblings() throws Exception { RepositorySourceCapabilities sourceCapabilities = repositorySource.getCapabilities(); assertThat(sourceCapabilities.supportsSameNameSiblings(), is(true)); }
@Test public void shouldSupportUpdates() throws Exception { RepositorySourceCapabilities sourceCapabilities = repositorySource.getCapabilities(); assertThat(sourceCapabilities.supportsUpdates(), is(true)); }
@Test public void shouldNotSupportEvents() throws Exception { RepositorySourceCapabilities sourceCapabilities = repositorySource.getCapabilities(); assertFalse(sourceCapabilities.supportsEvents()); }
@Test public void shouldSupportWorkspaceCreation() throws Exception { RepositorySourceCapabilities sourceCapabilities = repositorySource.getCapabilities(); assertTrue(sourceCapabilities.supportsCreatingWorkspaces()); }
@Test public void shouldSupportReferenceCreation() throws Exception { RepositorySourceCapabilities sourceCapabilities = repositorySource.getCapabilities(); assertTrue(sourceCapabilities.supportsReferences()); }