    @Test
    public void testRenderValue() {

        StringType type = new StringType();
        Object info = type.convertTestString("string/Bb", "h ello");
        byte[] bytes = new byte[]{'h', ' ', 'e', 'l', 'l', 'o'};
        Object extract = type.isMatch(info, null, false, null, new MutableOffset(0), bytes);
        assertNotNull(extract);
        StringBuilder sb = new StringBuilder();
        type.renderValue(sb, extract, new MagicFormatter("%s"));
        assertEquals("h ello", sb.toString());

        bytes = new byte[]{'h', ' ', ' ', ' ', 'e', 'l', 'l', 'o'};
        extract = type.isMatch(info, null, false, null, new MutableOffset(0), bytes);
        assertNotNull(extract);
        sb.setLength(0);
        type.renderValue(sb, extract, new MagicFormatter("%s"));
        assertEquals("h   ello", sb.toString());
    }