@Test
public void shouldReturnRestClient() throws NoSuchClientTypeException {

  String[] hostNames = { "127.0.0.1" };
  Object o = factory.getClient(ElasticSearchClientFactory.RestClient,
                               hostNames, "test", serializer, null);
  assertThat(o, instanceOf(ElasticSearchRestClient.class));
}