@Test
public void testExtractHostsAndPorts() {

  RedisConfiguration configuration = new RedisConfiguration(sc);
  List<HostAndPort> hostsAndPorts = configuration.hostsAndPorts();
  assertEquals(1, hostsAndPorts.size());
  assertEquals("127.0.0.1", hostsAndPorts.iterator().next().host);
}