LayoutDragComponentHelper { public LayoutDragComponent lookupDragTypeBean(String dragTypeClassName) { return lookupBean(dragTypeClassName); } @Inject  LayoutDragComponentHelper(SyncBeanManager beanManager, ClientExperimentalFeaturesRegistryService experimentalFeaturesRegistryService); @PreDestroy void destroy(); LayoutDragComponent lookupDragTypeBean(String dragTypeClassName); String getRealBeanClass(LayoutDragComponent instance); LayoutComponent getLayoutComponentFromDrop(String dropData); LayoutComponent getLayoutComponent(LayoutDragComponent dragComponent);  }
@Test public void lookupBeanShouldRespectBeanScope() { helper.lookupDragTypeBean(LayoutDragComponentMock.class.getName()); verify(beanDefMock).getInstance(); verify(beanDefMock, never()).newInstance(); }