### Question:
JBossCacheSource implements BaseRepositorySource, ObjectFactory { public String getName() { return this.name; } JBossCacheSource(); void initialize( RepositoryContext context ); String getName(); RepositorySourceCapabilities getCapabilities(); int getRetryLimit(); synchronized void setRetryLimit( int limit ); synchronized void setName( String name ); CachePolicy getDefaultCachePolicy(); synchronized void setDefaultCachePolicy( CachePolicy defaultCachePolicy ); String getCacheJndiName(); synchronized void setCacheJndiName( String cacheJndiName ); String getCacheFactoryJndiName(); synchronized void setCacheFactoryJndiName( String jndiName ); String getCacheConfigurationName(); synchronized void setCacheConfigurationName( String cacheConfigurationName ); String getRootNodeUuid(); UUID getRootNodeUuidObject(); synchronized void setRootNodeUuid( String rootNodeUuid ); String getDefaultWorkspaceName(); synchronized void setDefaultWorkspaceName( String nameOfDefaultWorkspace ); synchronized String[] getPredefinedWorkspaceNames(); synchronized void setPredefinedWorkspaceNames( String[] predefinedWorkspaceNames ); @Description( i18n = JBossCacheConnectorI18n.class, value = "creatingWorkspacesAllowedPropertyDescription" ) @Label( i18n = JBossCacheConnectorI18n.class, value = "creatingWorkspacesAllowedPropertyLabel" ) @Category( i18n = JBossCacheConnectorI18n.class, value = "creatingWorkspacesAllowedPropertyCategory" ) boolean isCreatingWorkspacesAllowed(); synchronized void setCreatingWorkspacesAllowed( boolean allowWorkspaceCreation ); @SuppressWarnings( "unchecked" ) synchronized RepositoryConnection getConnection(); synchronized void close(); RepositoryContext getRepositoryContext(); boolean areUpdatesAllowed(); void setUpdatesAllowed( boolean updatesAllowed ); @Override boolean equals( Object obj ); @Override int hashCode(); synchronized Reference getReference(); Object getObjectInstance( Object obj,
                                     javax.naming.Name name,
                                     Context nameCtx,
                                     Hashtable<?, ?> environment ); static final int DEFAULT_RETRY_LIMIT; static final String DEFAULT_UUID_PROPERTY_NAME; static final String DEFAULT_NAME_OF_DEFAULT_WORKSPACE; static final boolean DEFAULT_UPDATES_ALLOWED; }### Answer:
@Test public void shouldHaveNullSourceNameUponConstruction() { source = new JBossCacheSource(); assertThat(source.getName(), is(nullValue())); }