Source:
<code>public void tagPostUploadJob() throws Exception { TestObjectContext testObjectContext = testPersistenceObjectFactory.createTestObjectContext(); EnrichmentTag scjReferenceTag = createReferencedCourtCasesTag(testObjectContext.getScJudgmentId(), testObjectContext.getNacJudgment()); EnrichmentTag scjSomeTag = createEnrichmentTag(testObjectContext.getScJudgmentId(), "SOME_TAG_TYPE", "{key:'value'}"); EnrichmentTag scjMaxRefMoneyTag = createEnrichmentTag(testObjectContext.getScJudgmentId(), EnrichmentTagTypes.MAX_REFERENCED_MONEY, JsonNormalizer.normalizeJson("{amount:12300.45, text:'123 tys zł 45 gr'}")); enrichmentTagRepository.save(Lists.newArrayList(scjReferenceTag, scjSomeTag, scjMaxRefMoneyTag)); String scJudgmentHash = getHashForTags(scjReferenceTag, scjSomeTag, scjMaxRefMoneyTag); String nacJudgmentHash = getHashForTags(scjReferenceTag); JobExecution execution = jobExecutor.forceStartNewJob(tagPostUploadJob); solrJudgmentsServer.commit(); JobExecutionAssertUtils.assertStepExecution(execution, 1, 0, 4); <START> JobExecutionAssertUtils.assertStepExecution(execution, 2, 0, 2); <END> assertEnrichmentHashForJudgment(testObjectContext.getScJudgmentId(), null, scJudgmentHash, true); assertEnrichmentHashForJudgment(testObjectContext.getNacJudgmentId(), null, nacJudgmentHash, true); assertEnrichmentHashForJudgment(testObjectContext.getCtJudgmentId(), null, null, true); assertEnrichmentHashForJudgment(testObjectContext.getCcJudgmentId(), null, null, true); assertMaxReferencedMoneyIndexed(testObjectContext.getScJudgmentId(), "12300.45,PLN"); }</code><technical_language>set some constants instead of step numbers? For example, UPDATE_ENRICHMENT_HASH_STEP = 1</technical_language>

Target:
public void tagPostUploadJob() throws Exception { TestObjectContext testObjectContext = testPersistenceObjectFactory.createTestObjectContext(); EnrichmentTag scjReferenceTag = createReferencedCourtCasesTag(testObjectContext.getScJudgmentId(), testObjectContext.getNacJudgment()); EnrichmentTag scjSomeTag = createEnrichmentTag(testObjectContext.getScJudgmentId(), "SOME_TAG_TYPE", "{key:'value'}"); EnrichmentTag scjMaxRefMoneyTag = createEnrichmentTag(testObjectContext.getScJudgmentId(), EnrichmentTagTypes.MAX_REFERENCED_MONEY, JsonNormalizer.normalizeJson("{amount:12300.45, text:'123 tys zł 45 gr'}")); enrichmentTagRepository.save(Lists.newArrayList(scjReferenceTag, scjSomeTag, scjMaxRefMoneyTag)); String scJudgmentHash = getHashForTags(scjReferenceTag, scjSomeTag, scjMaxRefMoneyTag); String nacJudgmentHash = getHashForTags(scjReferenceTag); JobExecution execution = jobExecutor.forceStartNewJob(tagPostUploadJob); solrJudgmentsServer.commit(); JobExecutionAssertUtils.assertStepExecution(execution, UPDATE_ENRICHMENT_HASH_STEP, 0, 4); JobExecutionAssertUtils.assertStepExecution(execution, MARK_CHANGED_TAG_JUDGMENTS_AS_NOT_INDEXED_STEP, 0, 2); assertEnrichmentHashForJudgment(testObjectContext.getScJudgmentId(), null, scJudgmentHash, true); assertEnrichmentHashForJudgment(testObjectContext.getNacJudgmentId(), null, nacJudgmentHash, true); assertEnrichmentHashForJudgment(testObjectContext.getCtJudgmentId(), null, null, true); assertEnrichmentHashForJudgment(testObjectContext.getCcJudgmentId(), null, null, true); assertMaxReferencedMoneyIndexed(testObjectContext.getScJudgmentId(), "12300.45,PLN"); }