### Question:
JcrRepositorySource implements RepositorySource, ObjectFactory { public RepositorySourceCapabilities getCapabilities() { return capabilities; } JcrRepositorySource(); String getName(); void setName( String name ); RepositorySourceCapabilities getCapabilities(); @Description( i18n = JcrConnectorI18n.class, value = "updatesAllowedPropertyDescription" ) @Label( i18n = JcrConnectorI18n.class, value = "updatesAllowedPropertyLabel" ) @Category( i18n = JcrConnectorI18n.class, value = "updatesAllowedPropertyCategory" ) boolean getUpdatesAllowed(); String getRepositoryJndiName(); void setRepositoryJndiName( String repositoryJndiName ); String getUsername(); synchronized void setUsername( String username ); String getPassword(); synchronized void setPassword( String password ); Credentials getCredentials(); void setCredentials( Credentials credentials ); CachePolicy getDefaultCachePolicy(); synchronized void setDefaultCachePolicy( CachePolicy defaultCachePolicy ); int getRetryLimit(); synchronized void setRetryLimit( int limit ); void initialize( RepositoryContext context ); synchronized Reference getReference(); Object getObjectInstance( Object obj,
                                     javax.naming.Name name,
                                     Context nameCtx,
                                     Hashtable<?, ?> environment ); synchronized RepositoryConnection getConnection(); void close(); static final int DEFAULT_RETRY_LIMIT; }### Answer:
@Test public void shouldReturnNonNullCapabilities() { assertThat(source.getCapabilities(), is(notNullValue())); }
@Test public void shouldSupportSameNameSiblings() { assertThat(source.getCapabilities().supportsSameNameSiblings(), is(true)); }
@Test public void shouldSupportUpdates() { assertThat(source.getCapabilities().supportsUpdates(), is(true)); }