@Override
  public void checkSubjectAccess(
      final KsqlSecurityContext securityContext,
      final String subjectName,
      final AclOperation operation
  ) {
    checkAccess(new CacheKey(securityContext,
        AuthObjectType.SUBJECT,
        subjectName,
        operation));
  }
@Test
  public void shouldThrowAuthorizationExceptionWhenBackendSubjectValidatorIsDenied() {
    // Given
    doThrow(KsqlSchemaAuthorizationException.class).when(backendValidator)
        .checkSubjectAccess(securityContext, SUBJECT_1, AclOperation.READ);

    // When:
    assertThrows(
        KsqlSchemaAuthorizationException.class,
        () -> cache.checkSubjectAccess(securityContext, SUBJECT_1, AclOperation.READ)
    );
  }