@Test
  public void testSynchronousIndexCreatedOnStringRegionWithNewDTD() {
    Region root = cache.getRegion(SEPARATOR + "root" + SEPARATOR + "string2");
    IndexManager im = IndexUtils.getIndexManager((InternalCache) cache, root, true);
    assertThat(im.getIndexes()).isNotEmpty();

    RegionAttributes ra = root.getAttributes();
    assertThat(ra.getIndexMaintenanceSynchronous()).isTrue();

    root = cache.getRegion(SEPARATOR + "root" + SEPARATOR + "string1");
    im = IndexUtils.getIndexManager((InternalCache) cache, root, true);
    assertThat(im.isIndexMaintenanceTypeSynchronous()).isTrue();
  }
Index creation tests for new DTD changes for Index tag for 6.6.1 with no function/primary-key
tag
geode-core/src/integrationTest/java/org/apache/geode/cache/query/internal/index/NewDeclarativeIndexCreationJUnitTest.java