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

    StackItem rawItem = OBJECT_MAPPER.readValue(BYTESTRING_JSON, StackItem.class);
    rawItem.asArray();
}