}
public void testGetAvailability_externalId_nomatch() {
final MarketDataAvailabilityFilter availability = create();
final ComputationTargetSpecification targetSpec = new ComputationTargetSpecification(ComputationTargetType.SECURITY, UniqueId.of("Security", "Foo"));
final Object target = new ExternalIdentifiablePrimitive(UniqueId.of("Security", "Foo"), ExternalId.of("BAD", "Foo"));
ValueRequirement desiredValue = new ValueRequirement("Cow", targetSpec);
assertFalse(availability.isAvailable(targetSpec, target, desiredValue));
desiredValue = new ValueRequirement("Foo", targetSpec);
assertFalse(availability.isAvailable(targetSpec, target, desiredValue));
}