public void entityNetworkIdChangedOnServerStart() throws HostingFailedException {
EngineEntityManager entityManager = getEntityManager();
NetworkComponent netComp = new NetworkComponent();
netComp.setNetworkId(122);
EntityRef entity = entityManager.create(netComp);
EngineTime time = mock(EngineTime.class);
NetworkSystem server = new NetworkSystemImpl(time);
netSystems.add(server);
server.connectToEntitySystem(entityManager, CoreRegistry.get(EntitySystemLibrary.class), null);
server.host(7777, true);