private GELFMessage createGELFMessage() {

    GELFMessage gelfMessage = new GELFMessage();

    gelfMessage.setHost("host.example.com");
    gelfMessage.setShortMessage("short message");
    gelfMessage.setFullMessage("full message");
    gelfMessage.setVersion("1");
    gelfMessage.setLevel(0);
    gelfMessage.setFacility("local0");
    gelfMessage.setFile("test.file");
    gelfMessage.setLine(42);
    gelfMessage.addAdditionalData("test", "test");

    return gelfMessage;
  }
  @Test
  public void testToStringWithLongMessage() {

    GELFMessage gelfMessage = createGELFMessage();
    gelfMessage.setFullMessage(
        "Really, really, really, really, really, really, really, really, really, really, "
            + "really, really, really, really, really, really, really, really, really, really, really, really, "
            + "really, really, really, really, really, really, really, really, really, really, really, really, "
            + "really, really long");

    String toString =
        "shortMessage: short message | fullMessage: Really, really, really, really, really, really, "
            + "really, really, really, really, really, really, really, really, really, really, really, really, "
            + "really, really, really, really, really (...)";

    assertEquals(toString, gelfMessage.toString());
  }