private CapabilityRegistry capabilityRegistry;
@Before
public void prepareResource() {
underTest = new AliasResource(yumRegistry, capabilityRegistry);
final YumHosted yum = mock(YumHosted.class);
when(yumRegistry.get(RELEASES)).thenReturn(yum);
when(yum.getVersion(EXISTING_ALIAS)).thenReturn(TRUNK_VERSION);
when(yum.getVersion(ALIAS_TO_CREATE)).thenReturn(VERSION_TO_CREATE);
final CapabilityReference reference = mock(CapabilityReference.class);
final Collection<CapabilityReference> references = Lists.newArrayList();
references.add(reference);
final GenerateMetadataCapability yumRepositoryCapability = mock(GenerateMetadataCapability.class);