### Question:
SiteRepositoryImpl implements SiteRepository, ServiceLifecycle { @Override public Site load() { final Site site = new Site(siteName); populateSite(site); return site; } SiteRepositoryImpl();  SiteRepositoryImpl(
            String siteName,
            DataSource dataSource,
            SerializationWriter<DbSite> writer,
            SerializationReader<DbSite> reader,
            ArtifactRegistryFactory artifactRegistryFactory,
            WebAPIResolver resolver); @Override void init(Context context); @Override void shutDown(); @Override Site load(); @Override void persist(Site site);  }### Answer:
@Test public void testEmptyCreated() { final Site empty = siteRepository.load(); Assert.assertTrue(empty.getCopyRepositories().isEmpty()); Assert.assertTrue(empty.getDsbList().isEmpty()); Assert.assertTrue(empty.getPsbs().isEmpty()); Assert.assertEquals("my-site", empty.getName()); }
@Test public void testAdd() { persistSite(); Site newSite = siteRepository.load(); assertSiteEquals(newSite); }