* Tests the search model
*/
public class SearchModelTests extends TestCase {
private static AppContext createMockContext() {
AppContext mockContext = EasyMock.createMock(AppContext.class);
Resources mockResources = EasyMock.createMock(Resources.class);
Css mockCss = EasyMock.createMock(Css.class);
expect(mockContext.getResources()).andReturn(mockResources).anyTimes();
expect(mockResources.searchMatchRendererCss()).andReturn(mockCss).anyTimes();
expect(mockCss.match()).andReturn("match").anyTimes();
replay(mockCss, mockResources, mockContext);
return mockContext;