// 翻页:自由方式(FreeStyle)
  @Test
  public void getOutboxDirectMessages() {
    List<DirectMessage> listMessage = null;
    Paging<DirectMessage> paging = new Paging<DirectMessage>();

    try {
      listMessage = weibo.getOutboxDirectMessages(paging);
    } catch (Exception e) {
      e.printStackTrace();
    }

    assertTrue(ListUtil.isNotEmpty(listMessage));

    assertTrue(ListUtil.isNotEmpty(listMessage));

    Method method = null;
    try {
      method = Weibo.class.getMethod("getOutboxDirectMessages", Paging.class);
    } catch (SecurityException e1) {
      e1.printStackTrace();
      assertTrue(false);
    } catch (NoSuchMethodException e1) {
      e1.printStackTrace();
      assertTrue(false);
    }

    // 测试上翻
    PagingTest.pageUp(listMessage, weibo, method);

    // 测试下翻
    PagingTest.pageDown(listMessage, weibo, method);

    // 测试中间展开
    PagingTest.pageExpand(listMessage, weibo, method);
  }
 @Test
 public void getOutboxDirectMessages_param() {
   try {
     List<DirectMessage> listMessage = weibo.getOutboxDirectMessages(null);
     assertNull(listMessage);
     assertTrue(false);
   } catch (LibException e) {
     assertTrue(true);
   }
 }