}
@Test
public void generateComplexSelectQuery_forMSSQL_exclusiveFilteringMode_shouldSucceed()
throws SQLException {
SQLGenerator sg = new MSSQLGenerator();
List<Filter> f = new ArrayList<Filter>();
f.add(new Or(new Like("name", "%lle"), new Like("name", "vi%")));
List<OrderBy> ob = Arrays.asList(new OrderBy("name", true));
StatementHelper sh = sg.generateSelectQuery("TABLE", f, ob, 4, 8,
"NAME, ID");
Assert.assertEquals(sh.getQueryString(),
"SELECT * FROM (SELECT row_number() OVER "
+ "( ORDER BY \"name\" ASC) AS rownum, NAME, ID "
+ "FROM TABLE WHERE (\"name\" LIKE ? "