public static StringBuilder print_json_diff(LogBuffer buffer, long len, String columnName, int columnIndex,
                                                String charsetName) {
        return print_json_diff(buffer, len, columnName, columnIndex, Charset.forName(charsetName));
    }
@Test
    public void print_json_diffInputNotNullZeroNotNullZeroNotNullOutputIllegalArgumentException3()
                                                                                                  throws InvocationTargetException {

        // Arrange
        final LogBuffer buffer = new LogBuffer();
        buffer.position = 27;
        buffer.semival = 0;
        final byte[] myByteArray = { (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
                (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
                (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
                (byte) 1, (byte) 0 };
        buffer.buffer = myByteArray;
        buffer.limit = 31;
        buffer.origin = -1;
        final long len = 0L;
        final String columnName = "foo";
        final int columnIndex = 0;
        final String charsetName = "gbk";
        try {

            // Act
            thrown.expect(IllegalArgumentException.class);
            JsonDiffConversion.print_json_diff(buffer, len, columnName, columnIndex, charsetName);
        } catch (IllegalArgumentException ex) {

            // Assert side effects
            Assert.assertNotNull(buffer);
            Assert.assertEquals(29, buffer.position);
            Assert.assertEquals(0, buffer.semival);
            Assert.assertArrayEquals(new byte[] { (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
                    (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
                    (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0,
                    (byte) 0, (byte) 1, (byte) 0 }, buffer.buffer);
            Assert.assertEquals(31, buffer.limit);
            Assert.assertEquals(-1, buffer.origin);
            throw ex;
        }
    }