@Test
public void testCreateRouter() throws Exception {

    NetworkInstance network = new NetworkInstance(NETWORK_NAME, VDC, REGION);
    network.setIdNetwork(ID);
    SubNetworkInstance subNetwork = new SubNetworkInstance(SUBNETWORK_NAME, VDC, REGION);
    subNetwork.setIdSubNet(ID);
    network.addSubNet(subNetwork);
    RouterInstance router = new RouterInstance(ID, ROUTER_NAME);
    router.setIdRouter(ID);
    network.addRouter(router);
    assertEquals(router.toJson(), ROUTER_STRING);
    assertEquals(network.toAddInterfaceJson(), ADDINTERFACE);
}