@Test
  public void cannotCreateWithTheSameName() throws Exception {
    createSimpleIndexA();
    gfsh.executeAndAssertThat(
        "create index --name=indexA --expression=key --region=" + SEPARATOR + "regionA")
        .statusIsSuccess()
        .containsOutput("Index \"indexA\" already exists.  Create failed due to duplicate name");
  }
this test class test: CreateIndexCommand, DestroyIndexCommand, ListIndexCommand
geode-dunit/src/main/java/org/apache/geode/management/internal/cli/commands/IndexCommandsIntegrationTestBase.java