### Question:
AbstractAuthenticationEventAuditor { protected String getRealmFromToken(SSOToken token) { try { String orgDN = token == null ? null : token.getProperty(ISAuthConstants.ORGANIZATION); return orgDN == null ? NO_REALM : DNMapper.orgNameToRealmName(orgDN); } catch (SSOException e) { return NO_REALM; } } AbstractAuthenticationEventAuditor(AuditEventPublisher eventPublisher, AuditEventFactory eventFactory);   }### Answer:
@Test public void shouldNotFailGetRealmFromToken() { auditor.getRealmFromToken(null); auditor.getRealmFromToken(emptyToken); }