ListenPortEntityBuilder implements EntityBuilder { static Map<String, ListenPort> createDefaultListenPorts() { Map<String, ListenPort> defaultPorts = new HashMap<>(); defaultPorts.put(ListenPort.DEFAULT_HTTP_8080, createDefaultHttp()); defaultPorts.put(ListenPort.DEFAULT_HTTPS_8443, createDefaultHttps()); return defaultPorts; } @Inject  ListenPortEntityBuilder(IdGenerator idGenerator); @Override List<Entity> build(Bundle bundle, BundleType bundleType, Document document); @NotNull @Override Integer getOrder();  }
@Test void checkDefaultPortsAreCreated() { final Map<String, ListenPort> defaultListenPorts = ListenPortEntityBuilder.createDefaultListenPorts(); assertNotNull(defaultListenPorts.get(ListenPort.DEFAULT_HTTP_8080), "Missing default HTTP"); assertNotNull(defaultListenPorts.get(ListenPort.DEFAULT_HTTPS_8443), "Missing default HTTPS"); }