### Question:
DefaultPurgeConfigurationService implements PurgeConfigurationService, Contextualizable { public RepositoryManagedContent getManagedRepositoryContent( int repositoryId ) throws PurgeConfigurationServiceException { try { LocalRepository repository = localRepositoryDao.getLocalRepository( repositoryId ); RepositoryManagedContent repoContent = contentFactory.create( repository.getLayout() ); repoContent.setRepository( repository ); return repoContent; } catch ( ContinuumObjectNotFoundException e ) { throw new PurgeConfigurationServiceException( "Error retrieving managed repository content for: " + repositoryId, e ); } catch ( ContinuumStoreException e ) { throw new PurgeConfigurationServiceException( "Error retrieving managed repository content for: " + repositoryId, e ); } catch ( ComponentLookupException e ) { throw new PurgeConfigurationServiceException( "Error retrieving managed repository content for: " + repositoryId, e ); } }  AbstractPurgeConfiguration addPurgeConfiguration( AbstractPurgeConfiguration purgeConfig ); void updatePurgeConfiguration( AbstractPurgeConfiguration purgeConfig ); void removePurgeConfiguration( int purgeConfigId ); DirectoryPurgeConfiguration addDirectoryPurgeConfiguration( DirectoryPurgeConfiguration dirPurge ); RepositoryPurgeConfiguration addRepositoryPurgeConfiguration( RepositoryPurgeConfiguration repoPurge ); RepositoryPurgeConfiguration getDefaultPurgeConfigurationForRepository( int repositoryId ); List<DirectoryPurgeConfiguration> getAllDirectoryPurgeConfigurations(); List<RepositoryPurgeConfiguration> getAllRepositoryPurgeConfigurations(); List<AbstractPurgeConfiguration> getAllPurgeConfigurations(); DirectoryPurgeConfiguration getDefaultPurgeConfigurationForDirectoryType( String directoryType ); List<DirectoryPurgeConfiguration> getDirectoryPurgeConfigurationsByLocation( String location ); List<DirectoryPurgeConfiguration> getDirectoryPurgeConfigurationsBySchedule( int scheduleId ); List<DirectoryPurgeConfiguration> getEnableDirectoryPurgeConfigurationsBySchedule( int scheduleId ); List<RepositoryPurgeConfiguration> getRepositoryPurgeConfigurationsByRepository( int repositoryId ); List<RepositoryPurgeConfiguration> getRepositoryPurgeConfigurationsBySchedule( int scheduleId ); List<RepositoryPurgeConfiguration> getEnableRepositoryPurgeConfigurationsBySchedule( int scheduleId ); void removeDirectoryPurgeConfiguration( DirectoryPurgeConfiguration purgeConfig ); void removeRepositoryPurgeConfiguration( RepositoryPurgeConfiguration purgeConfig ); void updateDirectoryPurgeConfiguration( DirectoryPurgeConfiguration purgeConfig ); void updateRepositoryPurgeConfiguration( RepositoryPurgeConfiguration purgeConfig ); DirectoryPurgeConfiguration getDirectoryPurgeConfiguration( int purgeConfigId ); RepositoryPurgeConfiguration getRepositoryPurgeConfiguration( int purgeConfigId ); AbstractPurgeConfiguration getPurgeConfiguration( int purgeConfigId ); RepositoryManagedContent getManagedRepositoryContent( int repositoryId ); List<DistributedDirectoryPurgeConfiguration> getAllDistributedDirectoryPurgeConfigurations(); List<DistributedRepositoryPurgeConfiguration> getAllDistributedRepositoryPurgeConfigurations(); DistributedDirectoryPurgeConfiguration addDistributedDirectoryPurgeConfiguration(
        DistributedDirectoryPurgeConfiguration dirPurge ); DistributedRepositoryPurgeConfiguration addDistributedRepositoryPurgeConfiguration(
        DistributedRepositoryPurgeConfiguration repoPurge ); DistributedDirectoryPurgeConfiguration getDistributedDirectoryPurgeConfiguration( int dirPurgeId ); void updateDistributedDirectoryPurgeConfiguration( DistributedDirectoryPurgeConfiguration dirPurge ); void removeDistributedDirectoryPurgeConfiguration( DistributedDirectoryPurgeConfiguration purgeConfig ); void removeDistributedRepositoryPurgeConfiguration( DistributedRepositoryPurgeConfiguration purgeConfig ); DistributedRepositoryPurgeConfiguration getDistributedRepositoryPurgeConfiguration( int dirPurgeId ); List<DistributedDirectoryPurgeConfiguration> getEnableDistributedDirectoryPurgeConfigurationsBySchedule(
        int scheduleId ); List<DistributedRepositoryPurgeConfiguration> getEnableDistributedRepositoryPurgeConfigurationsBySchedule(
        int scheduleId ); void contextualize( Context context );  }### Answer:
@Test public void testRepositoryManagedContent() throws Exception { RepositoryManagedContent repo = purgeConfigurationService.getManagedRepositoryContent( defaultRepository.getId() ); assertTrue( "check repository managed content", ( repo instanceof ManagedDefaultRepositoryContent ) ); assertEquals( "check repository of the managed content", defaultRepository, repo.getRepository() ); }