// create this new repo type
final RepositoryTemplate template =
(RepositoryTemplate) templateManager.getTemplates().getTemplateById("nexus4807");
template.getConfigurableRepository().setId("peter");
template.getConfigurableRepository().setName("We all love Peter!");
final Repository repository = template.create();
// do some simple assertion
assertThat(repository.getId(), equalTo("peter"));
assertThat(repository.getName(), equalTo("We all love Peter!"));
// assert peter is here simply, by having this below not throw any exception and returning non-null