### Question:
GeoFenceClient { public RESTUserGroupService getUserGroupService() { return getService(RESTUserGroupService.class, "groups"); } GeoFenceClient(); RESTUserGroupService getUserGroupService(); RESTUserService getUserService(); RESTGSInstanceService getGSInstanceService(); RESTRuleService getRuleService(); RESTBatchService getBatchService(); String getPassword(); void setPassword(String password); String getUsername(); void setUsername(String username); String getRestUrl(); void setGeostoreRestUrl(String restUrl);  }### Answer:
@Test public void testUserGroups() { GeoFenceClient client = createClient(); for(String name: Arrays.asList("group01", "group02")) { RESTInputGroup i = new RESTInputGroup(); i.setEnabled(Boolean.TRUE); i.setName(name); client.getUserGroupService().insert(i); } assertEquals("Bad group number", 2, client.getUserGroupService().count("%")); assertEquals("Bad group number", 2, client.getUserGroupService().count("group%")); assertEquals("Bad group number", 0, client.getUserGroupService().count("zzz%")); assertEquals("Bad group number", 1, client.getUserGroupService().count("%p01")); }