private void assertEntry(final String expectedName, final int expectedOrder,
      final Entry<String, CacheElement> entry) {
    assertEquals("Entry key out of order.", expectedName, entry.getKey());
    assertEquals("Entry value name out of order.", expectedName, entry.getValue().getName());
    assertEquals("Entry value order out of order.", expectedOrder, entry.getValue().getOrder());
  }
As of 8.1 the cache type requires that certain elements be listed in sequence. This test
verifies that {@link CacheElement#buildElementMap(Document)} produces a mapping in the correct
order. If we change to use choice for all elements then we can abandon this mapping.

@since GemFire 8.1
geode-core/src/test/java/org/apache/geode/management/internal/configuration/domain/CacheElementJUnitTest.java