*/
public class EjbLinkDemandMetaDataTestCase
{
private DependencyItem createDependencyItem() throws MalformedObjectNameException
{
JavaEEComponent component = mock(JavaEEComponent.class);
String ejbName = "Test";
JavaEEModule module = mock(JavaEEModule.class);
when(module.getApplication()).thenReturn(null);
String objectName = JavaEEComponentHelper.createObjectName(module, null, ejbName);
when(component.createObjectName(null, ejbName)).thenReturn(objectName);
EjbLinkDemandMetaData demandMetaData = new EjbLinkDemandMetaData(component, ejbName);
assertEquals(new ObjectName("jboss.j2ee:name=Test,service=EJB3,*"), demandMetaData.getDemand());