@Test
public void testCreate_parseKeepAlive() throws Exception {

    final Map<String, String> data = new HashMap<String, String>();
    data.put(FastCGIHandlerFactory.PARAM_CLUSTER_ADRESSES, "127.0.0.1:9003");
    final FastCGIHandler handlerWithoutKeepAlive = FastCGIHandlerFactory
            .create(data);
    verify(poolFactory).addAddress("127.0.0.1:9003");
    assertThat(handlerWithoutKeepAlive).isNotNull();
    assertThat(handlerWithoutKeepAlive.isKeepAlive()).isFalse();
    data.put(FastCGIHandlerFactory.PARAM_KEEP_ALIVE, "true");
    final FastCGIHandler handlerWithKeepAlive = FastCGIHandlerFactory
            .create(data);
    assertThat(handlerWithKeepAlive).isNotNull();
    assertThat(handlerWithKeepAlive.isKeepAlive()).isTrue();
}