@Test
public void shouldAutoGenerateRepositoryNameFromClassSimpleNameWhenNoneSpecified() {

    // given
    ParamRepository repository = mock(ParamRepository.class);
    String repositoryClassName = repository.getClass().getSimpleName();
    NamedParamRepositoryFactory factory = new NamedParamRepositoryFactory();
    // when
    NamedParamRepository namedRepository = factory.create(repository);
    // then
    assertThat(namedRepository).hasName(repositoryClassName);
}