@Test
  public void testNodeChildrenUpdatedSinceUntil() throws ClientServicesException, XMLException {
    long start = System.currentTimeMillis();
    activity = createActivity("ActivityDescendantsUpdatedSinceUntil-" + start);

    List<ActivityNode> nodes = createActivityDescendants(activity);

    ActivityNode sinceNode = nodes.get(1);
    ActivityNode untilNode = nodes.get(3);

    Map<String, String> params = new HashMap<String, String>();
    params.put("since", "" + sinceNode.getUpdated().getTime());
    params.put("until", "" + untilNode.getUpdated().getTime());
    EntityList<ActivityNode> activityNodes =
        activityService.getActivityNodeChildren(activity.getActivityUuid(), params);
    System.out.println(
        "Nodes "
            + activityNodes.size()
            + " updated since: "
            + dateFormat.format(sinceNode.getUpdated())
            + " until: "
            + dateFormat.format(untilNode.getUpdated()));
    dumpNodes(activityNodes);

    Assert.assertEquals(2, activityNodes.size());
  }
 @Test
 public void testGetForumTopicsTags() throws Exception {
   EntityList<Forum> forums = forumService.getPublicForums();
   Forum forum = (Forum) forums.get(0);
   EntityList<Tag> entries = forumService.getForumTopicsTags(forum.getForumUuid());
   assertNotNull(entries);
   for (Tag tag : entries) {
     assertValid(tag);
   }
 }
  @Test
  public void testGetForumReplies() throws Exception {
    EntityList<ForumTopic> topics = forumService.getMyForumTopics();
    ForumTopic topic = (ForumTopic) topics.iterator().next();

    EntityList<ForumReply> entries = forumService.getForumReplies(topic.getTopicUuid());
    assertNotNull(entries);
    for (ForumReply reply : entries) {
      assertValid(reply);
    }
  }
  @Test
  public void testNodeChildrenCreatedUntil() throws ClientServicesException, XMLException {
    long start = System.currentTimeMillis();
    activity = createActivity("ActivityDescendantsCreatedUntil-" + start);

    List<ActivityNode> nodes = createActivityDescendants(activity);

    ActivityNode node = nodes.get(2);

    Map<String, String> params = new HashMap<String, String>();
    params.put("until", "" + node.getPublished().getTime());
    params.put("rangeId", "created");
    EntityList<ActivityNode> activityNodes =
        activityService.getActivityNodeChildren(activity.getActivityUuid(), params);
    System.out.println(
        "Nodes "
            + activityNodes.size()
            + " created until: "
            + dateFormat.format(node.getPublished()));
    dumpNodes(activityNodes);

    Assert.assertEquals(2, activityNodes.size());
  }