LiferayConnectionWizardDefinition extends AbstractComponentWizardDefintion { @Override public ComponentWizard createWizard( ComponentProperties componentProperties, String location) { if (componentProperties != null) { if (!Objects.equals("connection", componentProperties.getName())) { if (_logger.isDebugEnabled()) { _logger.debug( "Adjust component properties name to `connection`"); } componentProperties.setName("connection"); } return new LiferayConnectionWizard( this, componentProperties, location); } if (_logger.isInfoEnabled()) { _logger.info("Create wizard with own component properties"); } LiferayConnectionProperties liferayConnectionProperties = new LiferayConnectionProperties("connection"); liferayConnectionProperties.init(); return new LiferayConnectionWizard( this, liferayConnectionProperties, location); }  @Override ComponentWizard createWizard(
		ComponentProperties componentProperties, String location); @Override ComponentWizard createWizard(String location); @Override String getIconKey(); @Override String getImagePath(DefinitionImageType definitionImageType); @Override String getName(); @Override String getPngImagePath(WizardImageType wizardImageType); @Override Class getPropertiesClass(); @Override boolean isTopLevel(); @Override boolean supportsProperties(
		Class<? extends ComponentProperties> propertiesClass); static final String COMPONENT_WIZARD_NAME; }
@Test public void testCreateWizard() { ComponentWizard wizard = _liferayConnectionWizardDefinition.createWizard( _liferayConnectionProperties, _REPOSITORY_LOCATION); Assert.assertThat( wizard, CoreMatchers.instanceOf(LiferayConnectionWizard.class)); Assert.assertEquals( _liferayConnectionWizardDefinition, wizard.getDefinition()); Assert.assertEquals( _REPOSITORY_LOCATION, wizard.getRepositoryLocation()); }