public class TestBeanAnnotationWorker extends BaseAnnotationTestCase
{
public void testBeanClassSpecified()
{
EnhancementOperation op = newOp();
IComponentSpecification spec = new ComponentSpecification();
Method m = findMethod(AnnotatedPage.class, "getMapBean");
replayControls();
new BeanAnnotationWorker().performEnhancement(op, spec, m);
verifyControls();
IBeanSpecification bs = spec.getBeanSpecification("mapBean");
assertEquals("mapBean", bs.getPropertyName());
assertEquals(HashMap.class.getName(), bs.getClassName());
assertEquals(BeanLifecycle.REQUEST, bs.getLifecycle());
assertNull(bs.getLocation());