private void writeTags(Rule rule, JsonWriter json) {
    json.name("tags").beginArray();
    for (String adminTag : rule.adminTags()) {
      json.value(adminTag);
    }
    json.endArray();

    json.name("sysTags").beginArray();
    for (String systemTag : rule.systemTags()) {
      json.value(systemTag);
    }
    json.endArray();
  }
 private Rule create(String repoKey, String key, String name, String description) {
   Rule mockRule = mock(Rule.class);
   when(mockRule.adminTags()).thenReturn(ImmutableList.of("admin1", "admin2"));
   return mockRule;
 }