public final static void main(final String[] args) throws MetaClientException {
        final HttpClientConfig httpClientConfig = new HttpClientConfig("localhost", 8080);

        final ProxoolDataSource dataSource = new ProxoolDataSource();
        dataSource.setDriver("com.mysql.jdbc.Driver");
        dataSource.setDriverUrl("jdbc:mysql://localhost:3306/meta");
        dataSource.setUser("root");
        dataSource.setPassword("1234QWER");
        httpClientConfig.setDataSource(dataSource);
        final SimpleHttpConsumer client = new SimpleHttpConsumer(httpClientConfig);
        client.subscribe("meta-test", new Partition(1, 1), 99999, new MessageListener() {

            @Override
            public void recieveMessages(final Message message) {
                logger.info(new String(message.getData()));
            }


            @Override
            public Executor getExecutor() {
                return null;
            }
        });

        client.completeSubscribe();
    }
Use main because it will quit after main flow of test finish running if
using test case.

@param args
@throws MetaClientException
metamorphosis-http-client/src/test/java/com/taobao/metamorphosis/client/http/SimpleHttpClientUnitTest.java