### Question:
UserLoggerFactory { public static UserLogger getUserLogger() { ServerProperties serverProperties = ServerProperties.getInstance(); String userLoggerClassName = serverProperties.getValue(USERLOGGER_PROPERTY_NAME); UserLogger userLogger; if (userLoggerClassName == null || userLoggerClassName.isEmpty()) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "auth.UserLogger is undefined. Using default implementation : " + UserLogger.class.getName()); } userLogger = new UserLogger(); } else { try { userLogger = (UserLogger) Class.forName(userLoggerClassName).newInstance(); } catch (Exception e) { LOGGER.log(Level.SEVERE, "The UserLogger specified " + userLoggerClassName + " could not be instantiated! Using default implementation : " + UserLogger.class.getName(), e); userLogger = new UserLogger(); } } return userLogger; }  static UserLogger getUserLogger();  }### Answer:
@Test public void should_return_UserLogger() { assertThat(UserLoggerFactory.getUserLogger()).isInstanceOf(UserLogger.class); }