KafkaJmxOptions implements UnknownPropertyPreserving, Serializable { @Description("Authentication configuration for connecting to the Kafka JMX port") @JsonProperty("authentication") @JsonInclude(JsonInclude.Include.NON_NULL) public KafkaJmxAuthentication getAuthentication() { return authentication; }  @Description("Authentication configuration for connecting to the Kafka JMX port") @JsonProperty("authentication") @JsonInclude(JsonInclude.Include.NON_NULL) KafkaJmxAuthentication getAuthentication(); void setAuthentication(KafkaJmxAuthentication authentication); @Override Map<String, Object> getAdditionalProperties(); @Override void setAdditionalProperty(String name, Object value);  }
@Test public void testAuthentication() { KafkaJmxOptions opts = TestUtils.fromJson("{" + "\"authentication\": {" + "\"type\": \"password\"" + "}" + "}", KafkaJmxOptions.class); assertThat(opts.getAuthentication(), is(notNullValue())); assertThat(opts.getAuthentication().getType(), is(KafkaJmxAuthenticationPassword.TYPE_PASSWORD)); }