private void trainForCoreStack(DocumentLinker linker, JavaScriptStackSource stackSource,
JavaScriptStackPathConstructor pathConstructor)
{
JavaScriptStack stack = mockJavaScriptStack();
StylesheetLink stylesheetLink = new StylesheetLink("style.css");
expect(stackSource.getStack(InternalConstants.CORE_STACK_NAME)).andReturn(stack);
expect(pathConstructor.constructPathsForJavaScriptStack(InternalConstants.CORE_STACK_NAME)).andReturn(
CollectionFactory.newList("stack1.js", "stack2.js"));
expect(stack.getStylesheets()).andReturn(CollectionFactory.newList(stylesheetLink));