@Test
public void testAddFeederVerticle() {
NetworkConfig network = new DefaultNetworkConfig("test");
assertEquals("test", network.getName());
VerticleConfig verticle1 = network.addVerticle("verticle1", "verticle1.py");
assertEquals("verticle1", verticle1.getName());
assertTrue(verticle1.getType().equals(ComponentConfig.Type.VERTICLE));
assertEquals("verticle1.py", verticle1.getMain());
assertEquals(new JsonObject(), verticle1.getConfig());
assertEquals(1, verticle1.getInstances());
VerticleConfig verticle2 = network.addVerticle("verticle2", "verticle2.py", new JsonObject().putString("foo", "bar"));
assertEquals("verticle2", verticle2.getName());
assertTrue(verticle2.getType().equals(ComponentConfig.Type.VERTICLE));
assertEquals("verticle2.py", verticle2.getMain());
assertEquals("bar", verticle2.getConfig().getString("foo"));
assertEquals(1, verticle2.getInstances());
VerticleConfig verticle3 = network.addVerticle("verticle3", "verticle3.py", 2);
assertEquals("verticle3", verticle3.getName());
assertTrue(verticle3.getType().equals(ComponentConfig.Type.VERTICLE));
assertEquals("verticle3.py", verticle3.getMain());
assertEquals(new JsonObject(), verticle3.getConfig());
assertEquals(2, verticle3.getInstances());
VerticleConfig verticle4 = network.addVerticle("verticle4", "verticle4.py", new JsonObject().putString("foo", "bar"), 2);
assertEquals("verticle4", verticle4.getName());
assertTrue(verticle4.getType().equals(ComponentConfig.Type.VERTICLE));
assertEquals("verticle4.py", verticle4.getMain());
assertEquals("bar", verticle4.getConfig().getString("foo"));
assertEquals(2, verticle4.getInstances());
}