@Test(expected = IllegalStateException.class)
public void testThrowOnWrongCastByteString() throws IOException {

    StackItem rawItem = OBJECT_MAPPER.readValue("{\"type\":\"Integer\",\"value\":\"1124\"}",
            StackItem.class);
    rawItem.asByteString();
}