protected void populateAvailabilityHintKey(final Collection<Serializable> key) {
// Don't care
}
};
final Object target = new Primitive(targetSpec.getUniqueId());
assertTrue(filter.isAvailable(targetSpec, target, desiredValue));
final AbstractMarketDataAvailabilityProvider provider = Mockito.mock(AbstractMarketDataAvailabilityProvider.class);
final ValueSpecification valueSpec = new ValueSpecification(desiredValue.getValueName(), targetSpec, ValueProperties.with(ValuePropertyNames.FUNCTION, "Mock").get());
Mockito.when(provider.getAvailability(targetSpec, targetSpec.getUniqueId(), desiredValue)).thenReturn(valueSpec);
assertEquals(filter.withProvider(provider).getAvailability(targetSpec, target, desiredValue), valueSpec);