in javatests/com/google/gerrit/plugins/startblock/BlockSubmissionHashtagRuleIT.java [38:55]
public void blocksWhenBlockSubmissionHashtagIsPresent() throws Exception {
PushOneCommit.Result r = createChange();
HashtagsInput hashtagsInput = new HashtagsInput();
hashtagsInput.add = ImmutableSet.of("BLOCK_SUBMISSION");
gApi.changes().id(r.getChangeId()).setHashtags(hashtagsInput);
Optional<SubmitRecord> submitRecord = rule.evaluate(r.getChange());
assertThat(submitRecord).isPresent();
SubmitRecord result = submitRecord.get();
assertThat(result.status).isEqualTo(SubmitRecord.Status.NOT_READY);
assertThat(result.requirements)
.containsExactly(
LegacySubmitRequirement.builder()
.setFallbackText("Change must not have BLOCK_SUBMISSION hashtag")
.setType("block_submission_hashtag")
.build());
}