public void testCombinationsOfOrAndShouldBeCreatedCorrectly() throws NoSuchMethodException, SecurityException {
Method method = SampleRepository.class.getMethod("findByNameOrDescriptionAndLastModifiedAfter", String.class,
String.class, Date.class);
Query query = createQueryForMethodWithArgs(method, new Object[] { "mail", "domain",
new DateTime(2012, 10, 15, 5, 31, 0, DateTimeZone.UTC) });
Assert.assertEquals("name:mail OR description:domain AND last_modified:{2012\\-10\\-15T05\\:31\\:00.000Z TO *]",
queryParser.getQueryString(query));
}