.putString(ModuleConfig.COMPONENT_TYPE, ModuleConfig.COMPONENT_TYPE_MODULE)
.putString(ModuleConfig.MODULE_NAME, "com.test~test-module~1.0")
.putObject(ModuleConfig.COMPONENT_CONFIG, new JsonObject().putString("foo", "bar"))
.putNumber(ModuleConfig.COMPONENT_NUM_INSTANCES, 2);
json.putObject(NetworkConfig.NETWORK_COMPONENTS, new JsonObject().putObject("feeder", jsonFeeder));
NetworkConfig network = new Vertigo(null, null).createNetwork(json);
assertEquals("test", network.getName());
ModuleConfig module = network.getComponent("feeder");
assertEquals("feeder", module.getName());
assertEquals("com.test~test-module~1.0", module.getModule());
assertEquals("bar", module.getConfig().getString("foo"));
assertEquals(2, module.getInstances());
assertTrue(module.getType().equals(ComponentConfig.Type.MODULE));