@Test
  public void index_test() throws Exception {
    dbTester.prepareDbUnit(getClass(), "index_source.xml");
    TestTesting.updateDataColumn(
        dbTester.getSession(), "FILE1_UUID", TestTesting.newRandomTests(1));

    treeRootHolder.setRoot(
        DumbComponent.builder(Component.Type.PROJECT, 1)
            .setUuid("ABCD")
            .setKey("PROJECT_KEY")
            .build());

    step().execute();

    List<SearchHit> docs =
        esTester.getDocuments(TestIndexDefinition.INDEX, TestIndexDefinition.TYPE);
    assertThat(docs).hasSize(1);
    TestDoc doc = new TestDoc(docs.get(0).sourceAsMap());
    assertThat(doc.projectUuid()).isEqualTo("ABCD");
    assertThat(doc.fileUuid()).isEqualTo("FILE1_UUID");
    assertThat(doc.coveredFiles()).isNotEmpty();
  }