@Test
 public void csslintRules()
     throws RuleDefinitionException, JsonParseException, JsonMappingException, IOException {
   FileLoader loader = new JsonFileLoader(getClass().getResourceAsStream("/rules/csslint.json"));
   loader.load(repository);
   verify(newRule, times(37)).setName(anyString());
   verify(newRule, times(37)).setHtmlDescription(anyString());
   verify(newRule, times(1)).setSeverity("MINOR");
   verify(newRule, times(2)).setSeverity("MAJOR");
   verify(newRule, times(1)).setSeverity("BLOCKER");
   verify(newRule, times(1)).setSeverity("CRITICAL");
   verify(newRule, times(0)).setStatus(null);
 }
    @Override
    protected Bitmap doInBackground(Object... params) {
      Bitmap bitmap = null;
      key = (String) params[0];
      int position = (Integer) params[1];
      Savelog.d(TAG, debug, "AsyncTask trying to load bitmap from cache");

      if (fileLoader == null) {
        Savelog.e(TAG, "file loader is null.");
      } else {
        int pageNumberNeeded = position + 1;
        bitmap = fileLoader.load(appContext, maxWidth, pageNumberNeeded, pageRange);
      }
      // bitmap could be null if oom error or cache flushed out.
      return bitmap;
    }