### Question:
AbstractCassandraProcessor extends AbstractProcessor { public List<InetSocketAddress> getContactPoints(String contactPointList) { if (contactPointList == null) { return null; } final List<String> contactPointStringList = Arrays.asList(contactPointList.split(",")); List<InetSocketAddress> contactPoints = new ArrayList<>(); for (String contactPointEntry : contactPointStringList) { String[] addresses = contactPointEntry.split(":"); final String hostName = addresses[0].trim(); final int port = (addresses.length > 1) ? Integer.parseInt(addresses[1].trim()) : DEFAULT_CASSANDRA_PORT; contactPoints.add(new InetSocketAddress(hostName, port)); } return contactPoints; }  void stop(); static Schema getUnionFieldType(String dataType); static Schema getSchemaForType(String dataType); static String getPrimitiveAvroTypeFromCassandraType(DataType dataType); static DataType getPrimitiveDataTypeFromString(String dataTypeName); List<InetSocketAddress> getContactPoints(String contactPointList); static final int DEFAULT_CASSANDRA_PORT; static final PropertyDescriptor CONTACT_POINTS; static final PropertyDescriptor KEYSPACE; static final PropertyDescriptor PROP_SSL_CONTEXT_SERVICE; static final PropertyDescriptor CLIENT_AUTH; static final PropertyDescriptor USERNAME; static final PropertyDescriptor PASSWORD; static final PropertyDescriptor CONSISTENCY_LEVEL; static final PropertyDescriptor CHARSET; }### Answer:
@Test public void testGetContactPoints() throws Exception { List<InetSocketAddress> contactPoints = processor.getContactPoints(""); assertNotNull(contactPoints); assertEquals(1, contactPoints.size()); assertEquals("localhost", contactPoints.get(0).getHostName()); assertEquals(AbstractCassandraProcessor.DEFAULT_CASSANDRA_PORT, contactPoints.get(0).getPort()); contactPoints = processor.getContactPoints("192.168.99.100:9042"); assertNotNull(contactPoints); assertEquals(1, contactPoints.size()); assertEquals("192.168.99.100", contactPoints.get(0).getAddress().getHostAddress()); assertEquals(9042, contactPoints.get(0).getPort()); contactPoints = processor.getContactPoints("192.168.99.100:9042, mydomain.com : 4000"); assertNotNull(contactPoints); assertEquals(2, contactPoints.size()); assertEquals("192.168.99.100", contactPoints.get(0).getAddress().getHostAddress()); assertEquals(9042, contactPoints.get(0).getPort()); assertEquals("mydomain.com", contactPoints.get(1).getHostName()); assertEquals(4000, contactPoints.get(1).getPort()); }