### Question:
KerberosConfigurationDescriptor extends AbstractKerberosDescriptor { @Override public Map<String, Object> toMap() { Map<String, Object> map = new TreeMap<>(); map.put(getName(), (properties == null) ? null : new TreeMap<String, Object>(properties)); return map; } KerberosConfigurationDescriptor(Map<?, ?> data); String getType(); void setType(String type); void setProperties(Map<String, String> properties); Map<String, String> getProperties(); String getProperty(String name); void putProperty(String name, String value); void update(KerberosConfigurationDescriptor updates); @Override Map<String, Object> toMap(); @Override int hashCode(); @Override boolean equals(Object object);  }### Answer:
@Test public void testToMap() throws AmbariException { KerberosConfigurationDescriptor descriptor = new KerberosConfigurationDescriptor(MAP_SINGLE_VALUE); Assert.assertNotNull(descriptor); Assert.assertEquals(MAP_SINGLE_VALUE, descriptor.toMap()); }