@Test
public void subjectIdCannotHaveMoreThan256Characters() {

    final String invalidSubjectId = generateStringExceedingMaxLength(ISSUER_WITH_SEPARATOR);
    assertThatExceptionOfType(SubjectIdInvalidException.class)
            .isThrownBy(() -> ImmutableSubjectId.of(invalidSubjectId));
}