@Test
public void shouldThrowInvalidSourceExceptionWhenTryingToGetUnknownRepository() {

    // given
    List<NamedParamRepository> repositories = Arrays.asList(
            namedRepository(new FakeEditableParamRepository()).build()
    );
    RepositoryStore<EditableParamRepository> store = new RepositoryStore<EditableParamRepository>(repositories, EditableParamRepository.class);
    // when
    try {
        store.get(RepositoryName.from("invalid name"));
        Assertions.fail("Expected InvalidSourceRepositoryException.");
    } catch (InvalidSourceRepositoryException invalidRepoException) {
    }
}