    @Test
    public void simpleByteArrayAppending() throws Exception {

        String token = "aBcDeFgHiJkLmNoPqRsT";
        String type = random(8);
        String loggerName = "simpleByteArrayAppending";
        int drainTimeout = 2;

        String message1 = "Testing.." + random(5);
        String message2 = "Warning test.." + random(5);

        LogzioSender.Builder testSenderBuilder = getLogzioSenderBuilder(token, type, drainTimeout,
                10 * 1000, 10 * 1000, tasks,false);
        LogzioSender testSender = createLogzioSender(testSenderBuilder);

        testSender.send( createJsonMessage(loggerName, message1).toString().getBytes(StandardCharsets.UTF_8));
        testSender.send( createJsonMessage(loggerName, message2).toString().getBytes(StandardCharsets.UTF_8));
        sleepSeconds(drainTimeout  *3);

        mockListener.assertNumberOfReceivedMsgs(2);
        mockListener.assertLogReceivedIs(message1, token, type, loggerName, LOGLEVEL);
        mockListener.assertLogReceivedIs(message2, token, type, loggerName, LOGLEVEL);
    }