Object[] findValues(int ordinal) {
        return getAllValues(ordinal, type, 0);
    }
@Test
    public void testMapReference() throws Exception {
        Map<Integer, String> map = new HashMap<>();
        map.put(1, "one");
        map.put(2, "two");

        MapReference mapReference = new MapReference();
        mapReference.mapValues = map;

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

        // no auto-expand for a map
        FieldPath fieldPath = new FieldPath(readStateEngine, "MapReference", "mapValues.value");
        Object[] values = fieldPath.findValues(0);
        Assert.assertEquals(2, values.length);
        Set<String> valuesAsSet = new HashSet<>();
        for (Object v : values) valuesAsSet.add((String) v);
        Assert.assertTrue(valuesAsSet.contains("one"));
        Assert.assertTrue(valuesAsSet.contains("two"));
    }