@Test
public void shouldReturnNamedParamRepositoryProducedFromRepositoryNameAndRepository() {

    // given
    ParamRepository repository = mock(ParamRepository.class);
    NamedParamRepositoryFactory factory = new NamedParamRepositoryFactory();
    // when
    NamedParamRepository namedRepository = factory.create(RepositoryName.from("test"), repository);
    // then
    assertThat(namedRepository).containsRepository(repository).hasName("test");
}