replay(location);
compSpec.setLocation(isA(Location.class));
}
private void trainGetFlowForComponent(String componentName, FlowImplementor flow, FlowAwareTemplateSourceDelegate delegate) {
FlowDefinitionsManager flowDefinitionsManager = createMock(FlowDefinitionsManager.class);
expect(flowDefinitionsManager.getFlowDefinition(componentName)).andReturn(flow);
replay(flowDefinitionsManager);
delegate.setFlowDefinitionsManager(flowDefinitionsManager);
}