@Test
  public void topEntriesAreInjected() throws Exception {
    TextFileInputMetaInjection.Entry[] topEntries =
        TextFileInputMetaInjection.Entry.getTopEntries();
    List<StepInjectionMetaEntry> injectionValues = createInjectionValues(topEntries);

    TextFileInputMetaInjection injection = new TextFileInputMetaInjection(new TextFileInputMeta());
    injection.injectStepMetadataEntries(injectionValues);

    assertInjected(injection.extractStepMetadataEntries(), injectionValues);
  }
  @Test
  public void extractingAll() throws Exception {
    TextFileInputMetaInjection injection = new TextFileInputMetaInjection(new TextFileInputMeta());
    List<StepInjectionMetaEntry> metadata = injection.getStepInjectionMetadataEntries();
    List<StepInjectionMetaEntry> extracted = injection.extractStepMetadataEntries();

    assertEquals(metadata.size(), extracted.size());
    for (StepInjectionMetaEntry metaEntry : metadata) {
      assertNotNull(metaEntry.getKey(), StepInjectionUtil.findEntry(extracted, metaEntry.getKey()));
    }
  }