### Question:
AuthenticationManagerFactory { public static AuthenticationManager getAuthenticationManager(final long tenantId) throws AuthenticationManagerNotFoundException { String authenticationManagerName = null; if (!map.containsKey(tenantId)) { try { authenticationManagerName = getManagerImplementationClassName(tenantId); final AuthenticationManager authenticationManager = (AuthenticationManager) Class.forName(authenticationManagerName).newInstance(); map.put(tenantId, authenticationManager); } catch (final Exception e) { final String message = "The AuthenticationManager implementation " + authenticationManagerName + " does not exist!"; throw new AuthenticationManagerNotFoundException(message); } } return map.get(tenantId); }  static AuthenticationManager getAuthenticationManager(final long tenantId);  }### Answer:
@Test public void testGetLoginManager() throws AuthenticationManagerNotFoundException { assertNotNull("Cannot get the login manager", AuthenticationManagerFactory.getAuthenticationManager(0L)); }