management.setSingleThread(true);
management.start();
management.removeAllResourses();
String[] arr = new String[]{"127.0.0.2", "127.0.0.3"};
Server server = management.addServer(SERVER_NAME, SERVER_HOST, SERVER_PORT, ipChannelType, true, 5, arr);
management.startServer(SERVER_NAME);
assertTrue(server.isStarted());
management.stop();
management = new ManagementImpl("ManagementTest");
// start again
management.start();
List<Server> servers = management.getServers();
assertEquals(1, servers.size());
server = servers.get(0);
assertTrue(server.isStarted());
// Add association
management.addServerAssociation(CLIENT_HOST, CLIENT_PORT, SERVER_NAME, SERVER_ASSOCIATION_NAME, ipChannelType);
assertEquals(management.getAssociations().size(), 1);