### Question:
AbstractAuthenticationEventAuditor { protected String getRealmFromState(LoginState loginState) { String orgDN = loginState == null ? null : loginState.getOrgDN(); return orgDN == null ? NO_REALM : DNMapper.orgNameToRealmName(orgDN); } AbstractAuthenticationEventAuditor(AuditEventPublisher eventPublisher, AuditEventFactory eventFactory);   }### Answer:
@Test public void shouldNotFailGetRealmFromState() { auditor.getRealmFromState(null); auditor.getRealmFromState(emptyState); }