### Question:
TenantIdAccessorFactory { @SuppressWarnings("unchecked") public static TenantIdAccessor getTenantIdAccessor(HttpServletRequestAccessor requestAccessor) { ServerProperties serverProperties = ServerProperties.getInstance(); String tenantIdAccessorClassName = serverProperties.getValue(TENANTIDACCESSOR_PROPERTY_NAME); TenantIdAccessor tenantIdAccessor; if (tenantIdAccessorClassName == null || tenantIdAccessorClassName.isEmpty()) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "auth.TenantIdAccessor is undefined. Using default implementation : " + TenantIdAccessor.class.getName()); } tenantIdAccessor = new TenantIdAccessor(requestAccessor); } else { try { Constructor<TenantIdAccessor> constructor = (Constructor<TenantIdAccessor>) Class.forName(tenantIdAccessorClassName).getConstructor(HttpServletRequestAccessor.class); tenantIdAccessor = constructor.newInstance(requestAccessor); } catch (Exception e) { LOGGER.log(Level.SEVERE, "The TenantIdAccessor specified " + tenantIdAccessorClassName + " could not be instantiated! Using default implementation : " + TenantIdAccessor.class.getName(), e); tenantIdAccessor = new TenantIdAccessor(requestAccessor); } } return tenantIdAccessor; }  @SuppressWarnings("unchecked") static TenantIdAccessor getTenantIdAccessor(HttpServletRequestAccessor requestAccessor);  }### Answer:
@Test public void should_return_TenantIdAccessor() { assertThat(TenantIdAccessorFactory.getTenantIdAccessor(requestAccessor)).isInstanceOf(TenantIdAccessor.class); }