@Test
  public void testIsSend() {
    GroupSendHandler handler = new GroupSendHandler();

    Requestable<? extends Response> not = new BaseRequest<Response>("not");
    Assert.assertFalse(handler.isSend(not));

    GroupRequest r = new GroupRequest();
    Assert.assertTrue(handler.isSend(r));
  }
  @Test
  public void testBuildMessage() {
    GroupRequest request = new GroupRequest();

    GroupSendHandler handler = new GroupSendHandler();
    StringBuilder builder = new StringBuilder();
    String e = "<CompanyID>1</CompanyID>";
    Operator key = new Operator("1", "2");
    Phone phone = new Phone();
    handler.buildMessage(phone, request, key, builder);
    Assert.assertEquals(e, builder.toString());

    builder = new StringBuilder();
    request.setGroupId("1");
    e = "<CompanyID>1</CompanyID><GroupID>1</GroupID>";
    handler.buildMessage(phone, request, key, builder);
    Assert.assertEquals(e, builder.toString());
  }