@Test
public void builtin_services_available_via_marker_annotation()
{
Registry r = buildRegistry();
TypeCoercer tc1 = r.getService("TypeCoercer", TypeCoercer.class);
Builtin annotation = newMock(Builtin.class);
AnnotationProvider ap = mockAnnotationProvider();
train_getAnnotation(ap, Builtin.class, annotation);
// On the build server, the order of keys inside the RegistryImpl's _markerToServiceDef
// is different, and so it *may* query ofr a number of other annotation
// besides Builtin.
expect(ap.getAnnotation(EasyMock.isA(Class.class))).andStubReturn(null);
replay();
TypeCoercer tc2 = r.getObject(TypeCoercer.class, ap);
assertSame(tc1, tc2);
verify();