EjbLinkDemandMetaData demandMetaData = new EjbLinkDemandMetaData(component, ejbName);
assertEquals(new ObjectName("jboss.j2ee:name=Test,service=EJB3,*"), demandMetaData.getDemand());
MetaDataVisitor visitor = mock(MetaDataVisitor.class);
KernelControllerContext context = mock(KernelControllerContext.class);
when(visitor.getControllerContext()).thenReturn(context);
demandMetaData.initialVisit(visitor);
ArgumentCaptor<DependencyItem> argument = ArgumentCaptor.forClass(DependencyItem.class);
verify(visitor).addDependency(argument.capture());