### Question:
DefaultApplicationFactory implements ApplicationFactory { @Override public Application createApplication() { return Application.create(getName()).healthUrl(getHealthUrl()).managementUrl(getManagementUrl()) .serviceUrl(getServiceUrl()).metadata(getMetadata()).build(); } DefaultApplicationFactory(InstanceProperties instance, ManagementServerProperties management,
			ServerProperties server, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint,
			MetadataContributor metadataContributor); @Override Application createApplication(); @EventListener void onWebServerInitialized(WebServerInitializedEvent event);  }### Answer:
@Test public void test_missingports() { assertThatThrownBy(() -> factory.createApplication()).isInstanceOf(IllegalStateException.class) .hasMessageContaining("service-base-url"); }