public static void verifyKafkaBrokers(Properties props) {
        //ensure bootstrap.servers is assigned
        String brokerList = getString(BOOTSTRAP_SERVERS_CONFIG, props); //usually = "bootstrap.servers"

        String[] brokers = brokerList.split(",");

        for (String broker : brokers) {
            checkArgument(
                broker.contains(":"),
                "Proper broker formatting requires a \":\" between the host and the port (input=" + broker + ")"
            );
            String host = broker.substring(0, broker.indexOf(":"));  //we could validate the host is we wanted to
            String port = broker.substring(broker.indexOf(":") + 1);

            parseInt(port);//every port should be an integer
        }
    }
@Test
    public void verifyKafkaBrokers_happyPath() {
        Properties props = new Properties();
        props.setProperty("bootstrap.servers", "localhost:9092");

        //does nothing when input is valid
        verifyKafkaBrokers(props);
    }