@Test
 public void testQueryWithNegativeTimeAllowed() throws Exception {
   SolrQueryMethod method =
       getQueryMethodByName("findAllWithNegativeTimeRestriction", String.class);
   Assert.assertNull(method.getTimeAllowed());
 }
 @Test
 public void testQueryWithPositiveTimeAllowed() throws Exception {
   SolrQueryMethod method =
       getQueryMethodByName("findAllWithPositiveTimeRestriction", String.class);
   Assert.assertEquals(Integer.valueOf(250), method.getTimeAllowed());
 }