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

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