public void testSuccess()
{
Location l = newLocation();
Resource r = (Resource) newMock(Resource.class);
EnhancementOperation op = newOp();
IComponentSpecification spec = new ComponentSpecification();
spec.setSpecificationLocation(r);
replayControls();
Method m = findMethod(AnnotatedPage.class, "getGlobalStylesheet");
new AssetAnnotationWorker().performEnhancement(op, spec, m, l);
verifyControls();
IAssetSpecification as = spec.getAsset("globalStylesheet");
assertEquals("/style/global.css", as.getPath());
assertEquals(new AnnotationLocation(r, l.toString()), as.getLocation());
assertEquals("globalStylesheet", as.getPropertyName());
}