throws Exception
{
final Repository repository = createYumEnabledRepository(repositoryIdForTest());
final User user = givenYumAdminUser();
final Yum yum = createNexusClient(nexus(), user.id(), PASSWORD).getSubsystem(Yum.class);
final String alias = uniqueName();
yum.createOrUpdateAlias(repository.id(), alias, VERSION);
assertThat(yum.getAlias(repository.id(), alias), is(VERSION));
yum.createOrUpdateAlias(repository.id(), alias, ANOTHER_VERSION);
assertThat(yum.getAlias(repository.id(), alias), is(ANOTHER_VERSION));
}