locatorFactory.addLocator(locator);
final DispatcherStreamLocator dispatcherLocator = Mockito.mock(DispatcherStreamLocator.class);
when(
dispatcherLocator.getInputStream(Mockito.any(HttpServletRequest.class), Mockito.any(HttpServletResponse.class),
Mockito.anyString())).thenReturn(WroUtil.EMPTY_STREAM);
final Injector injector = InjectorBuilder.create(new BaseWroManagerFactory().setUriLocatorFactory(locatorFactory)).setDispatcherLocator(
dispatcherLocator).build();
final LocatorFactoryHolder locatorFactoryHolder = new LocatorFactoryHolder();
injector.inject(locatorFactoryHolder);
final String uri = "/style.css";
locatorFactoryHolder.locatorFactory.locate(uri);