public PackageRepository find(final String repoId) {
        return stream().filter(repository -> repository.getId().equals(repoId)).findFirst().orElse(null);
    }
@Test
    void shouldFindRepositoryGivenTheRepoId() throws Exception {
        PackageRepository packageRepository1 = PackageRepositoryMother.create("repo-id1", "repo1", "plugin-id", "1.0", null);
        PackageRepository packageRepository2 = PackageRepositoryMother.create("repo-id2", "repo2", "plugin-id", "1.0", null);

        PackageRepositories packageRepositories = new PackageRepositories(packageRepository1, packageRepository2);
        assertThat(packageRepositories.find("repo-id2")).isEqualTo(packageRepository2);
    }