Object[] findValues(int ordinal) {
        return getAllValues(ordinal, type, 0);
    }
@Test
    public void testMapKeyReferenceToList() throws Exception {
        ListType listType = new ListType();
        listType.intValues = Arrays.asList(1, 2, 3);

        Map<ListType, Integer> map = new HashMap<>();
        map.put(listType, 1);

        MapKeyReferenceAsList mapKeyReferenceAsList = new MapKeyReferenceAsList();
        mapKeyReferenceAsList.mapValues = map;

        objectMapper.add(mapKeyReferenceAsList);
        StateEngineRoundTripper.roundTripSnapshot(writeStateEngine, readStateEngine);

        FieldPath fieldPath;
        Object[] values;

        fieldPath = new FieldPath(readStateEngine, "MapKeyReferenceAsList", "mapValues.key.intValues.element.value");
        values = fieldPath.findValues(0);
        Assert.assertEquals(3, values.length);
    }