@Test
public void testHello() {
Server server = new TcpServer();
Config config = new Config();
config.setHandleThreads(100);
config.setDecoder(new StringLineDecoder());
config.setEncoder(new StringLineEncoder());
config.setHandler(new SendFileHandler());
server.setConfig(config);
server.start("localhost", 9900);
final int LOOP = 50;
ExecutorService executorService = Executors.newFixedThreadPool(LOOP);
final SimpleTcpClient client = new SimpleTcpClient("localhost", 9900,
new StringLineDecoder(), new StringLineEncoder());
for (int i = 0; i < LOOP; i++) {
executorService.submit(new Runnable() {
@Override
public void run() {