Loader { int loadAlternativeTranslations() { LOGGER.debug("Indexing Alternative versions"); this.addUpdate("install_alternative_meanings"); final EntityIndexWriterImpl writer = this.entityManager.getNewWriter("alternativeTranslations"); final HeadwordLineBasedLoader loader = new HeadwordLineBasedLoader(writer, this.coreProperties.getProperty("test.data.path.alternatives.translations")); loader.init(this); LOGGER.debug("Writing Alternative Versions index"); final int close = writer.close(); LOGGER.debug("Writing Alternative Versions index"); this.addUpdate("install_alternative_meanings_complete", close); return close; } @Inject  Loader(final JSwordPassageService jsword, final JSwordModuleService jswordModule,
                  @Named("StepCoreProperties") final Properties coreProperties, final EntityManager entityManager,
                  final Provider<ClientSession> clientSessionProvider,
                  AppManagerService appManager
    ); void init(); List<String> readOnceProgress(); int getTotalProgress(); boolean isComplete();  }
@Test public void testAlternativeTranslationsLoader() { getLoader("test.data.path.alternatives.translations", "alternativeTranslations.txt") .loadAlternativeTranslations(); assertExists("alternativeTranslations", "reference", "Gen.1.1"); }