final IJDTFacade facade = context.mock(IJDTFacade.class);
Converter[] converters = {
new SessionBeanConverter(facade)
};
OpenEjbXmlConverter converter = new OpenEjbXmlConverter(converters);
// expectations
context.checking(new Expectations(){{
one(facade).addClassAnnotation("test.Test1Bean", Stateless.class, null); //$NON-NLS-1$
one(facade).addClassAnnotation("test.Test2Bean", Stateless.class, null); //$NON-NLS-1$
}});
// execute
converter.convert(new InputSource(getClass().getResourceAsStream("sample-openejb-jar-two-statelessessionbeans.xml"))); //$NON-NLS-1$
// verify
context.assertIsSatisfied();
}