KerberosComponentDescriptor extends AbstractKerberosDescriptorContainer { @Override public boolean equals(Object object) { return (object == this) || ( (object != null) && (object.getClass() == KerberosComponentDescriptor.class) && super.equals(object) ); } KerberosComponentDescriptor(Map<?, ?> data); @Override Collection<? extends AbstractKerberosDescriptorContainer> getChildContainers(); @Override AbstractKerberosDescriptorContainer getChildContainer(String name); @Override int hashCode(); @Override boolean equals(Object object);  }
@Test public void testEquals() throws AmbariException { Assert.assertTrue(createFromJSON().equals(createFromJSON())); Assert.assertFalse(createFromJSON().equals(createFromMap())); }