verticle.setConfig(new JsonObject().putString("foo", "bar"));
verticle.setInstances(2);
verticle.setGroup("test");
NetworkContext context = ContextBuilder.buildContext(network, "vertigo");
assertEquals("vertigo.test", context.address());
ModuleContext moduleContext = context.component("feeder");
assertEquals("feeder", moduleContext.name());
assertEquals("vertigo.test.feeder", moduleContext.address());
assertEquals("com.test~test-module~1.0", moduleContext.module());
assertFalse(moduleContext.isVerticle());
assertTrue(moduleContext.isModule());
assertEquals("bar", moduleContext.config().getString("foo"));
assertEquals(2, moduleContext.numInstances());
assertEquals(2, moduleContext.instances().size());
assertEquals("test", moduleContext.group());
assertNotNull(moduleContext.network());
}