### Question:
RegisterAuthenticatorFactory implements RequiredActionFactory, DisplayTypeRequiredActionFactory { @Override public RequiredActionProvider createDisplay(KeycloakSession session, String displayType) { if (displayType == null) return create(session); if (!OAuth2Constants.DISPLAY_CONSOLE.equalsIgnoreCase(displayType)) return null; return null; }  @Override RequiredActionProvider create(KeycloakSession session); @Override void init(Scope config); @Override void postInit(KeycloakSessionFactory factory); @Override void close(); @Override String getId(); @Override RequiredActionProvider createDisplay(KeycloakSession session, String displayType); @Override String getDisplayText(); static final String PROVIDER_ID; }### Answer:
@Test public void test_createDispley() throws Exception { KeycloakSession session = mock(KeycloakSession.class, Mockito.RETURNS_DEEP_STUBS); RegisterAuthenticatorFactory factory = new RegisterAuthenticatorFactory(); Assert.assertNotNull(factory.createDisplay(session, null)); Assert.assertNull(factory.createDisplay(session, OAuth2Constants.DISPLAY_CONSOLE)); Assert.assertNull(factory.createDisplay(session, "fujiyama")); }